[C++-sig] function return a shared_ptr

2012-05-22 Thread Yoann Chaumy
Hi, I will use a shared pointer to my Python script I expose my class : class_ >("Target") .def("getRadius", &handler::Target::getRadius) .def("setRadius", &handler::Target::setRadius) .def("setPosition", &handler::Target::setPosition) ; and I use a method "getTestTarget" who

Re: [C++-sig] boost::python with virtual inheritance and g++ c++0x/11 (testcase attached)

2012-05-22 Thread Niall Douglas
On 21 May 2012 at 18:43, Jonas Wielicki wrote: > On 21.05.2012 17:55, Niall Douglas wrote: > > 1. Does the bug occur in non-optimised as well as optimised builds? > It does. Joy. > > 2. Does the bug occur when C++11 is turned off? > It does not. Not so much joy. It could, technically speaking,

Re: [C++-sig] function return a shared_ptr

2012-05-22 Thread Jim Bosch
On May 22, 2012 8:38 AM, "Yoann Chaumy" wrote: > > > Hi, > I will use a shared pointer to my Python script > > I expose my class : > > class_ >("Target") > .def("getRadius", &handler::Target::getRadius) > .def("setRadius", &handler::Target::setRadius) > .def("setPosition", &handler:

Re: [C++-sig] boost::python with virtual inheritance and g++ c++0x/11 (testcase attached)

2012-05-22 Thread Gabe Rives-Corbett
When I had this problem I had not built BPL using C++11, how would I instruct bjam to use gcc at a specific location and with the -std=c++0x flag? -- Gabe Rives-Corbett Cell: (805) 570-8395 On Tuesday, May 22, 2012 at 10:43 AM, Niall Douglas wrote: > On 21 May 2012 at 18:43, Jonas Wielicki wr

Re: [C++-sig] boost::python with virtual inheritance and g++ c++0x/11 (testcase attached)

2012-05-22 Thread Jonas Wielicki
On 22.05.2012 16:43, Niall Douglas wrote: > Precompiled headers on GCC are basically a dump of state just after > processing the headers. As a result, the file is huge. That might > help you find out if they're on. I believe bjam defaults them to off. Well, in that case I'm not using them. They w

Re: [C++-sig] boost::python with virtual inheritance and g++ c++0x/11 (testcase attached)

2012-05-22 Thread Jonas Wielicki
On 22.05.2012 18:07, Gabe Rives-Corbett wrote: > how would I instruct bjam to use gcc at a specific location and with the > -std=c++0x flag? I found that the following works if you replace the existing section of the project-config.jam file in the boost source tarball: >>> snip # Compiler config

Re: [C++-sig] boost::python with virtual inheritance and g++ c++0x/11 (testcase attached)

2012-05-22 Thread Niall Douglas
On 22 May 2012 at 18:33, Jonas Wielicki wrote: > > BTW - can I just clarify you ARE compiling the entire of BPL using > > C++11 throughout? Linking C++11 to C++03 is *supposed* to work (but > > not the other way round), but I can see nests of vipers in it. > Ehm, I guess not, so I just downloade

Re: [C++-sig] boost::python with virtual inheritance and g++ c++0x/11 (testcase attached)

2012-05-22 Thread Jonas Wielicki
On 22.05.2012 19:05, Niall Douglas wrote: > Do post the bugzilla link here, I'd like to CC into it. There you go: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53455 I hope they won't murder me for the .gz ;). -- Jonas ___ Cplusplus-sig mailing list Cplu