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

Jim Bosch talljimbo at gmail.com
Sat Feb 11 06:26:28 CET 2012


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 alone an equivalent to boost::shared_ptr.

That's definitely going to need fixing in the near future.

Jim


More information about the Cplusplus-sig mailing list