Re: [C++-sig] boost::python handles boost::shared_ptr specially...

2012-02-12 Thread Jim Bosch
On 02/12/2012 01:01 PM, VáclavŠmilauer wrote: Will std::shared_ptr just work also? I asked this question some time ago here: http://stackoverflow.com/questions/6568952/c0x-stdshared-ptr-vs-boostshared-ptr To summarize: you need to define free get_pointer functions for T=your shared_ptr type an

Re: [C++-sig] boost::python handles boost::shared_ptr specially...

2012-02-12 Thread VáclavŠmilauer
> Will std::shared_ptr just work also? I asked this question some time ago here: http://stackoverflow.com/questions/6568952/c0x-stdshared-ptr-vs-boostshared-ptr To summarize: you need to define free get_pointer functions for T=your shared_ptr type and it will work. I eventyallu did not go that way

Re: [C++-sig] boost::python handles boost::shared_ptr specially...

2012-02-11 Thread Neal Becker
Jim Bosch wrote: > On 02/06/2012 11:33 AM, Neal Becker wrote: >> Will std::shared_ptr just work also? > > Just tried the experiment, albeit with slightly old versions. > > As of gcc 4.4 (with -std=gnu++0x) and Boost 1.47, it looks like > Boost.Python doesn't even recognize std::shared_ptr as any

Re: [C++-sig] boost::python handles boost::shared_ptr specially...

2012-02-10 Thread Jim Bosch
On 02/06/2012 11:33 AM, Neal Becker wrote: Will std::shared_ptr just work also? Just tried the experiment, albeit with slightly old versions. As of gcc 4.4 (with -std=gnu++0x) and Boost 1.47, it looks like Boost.Python doesn't even recognize std::shared_ptr as any kind of smart pointer, let