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

VáclavŠmilauer eudoxos at arcig.cz
Sun Feb 12 19:01:16 CET 2012


> 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<T> functions for T=your
shared_ptr type and it will work. I eventyallu did not go that way because
boost::serialization (which I also needed) will not work with std::shared_ptr.




More information about the Cplusplus-sig mailing list