[C++-sig] std::tr1::shared_ptr as boost::shared_ptr
roman.yakovenko at gmail.com
Fri Apr 20 18:53:32 CEST 2007
On 4/20/07, Piotr Jaroszynski <p.jaroszynski at gmail.com> wrote:
> bp::class_<Foo, std::tr1::shared_ptr<Foo> > ...
> bp::class_<Derived, std::tr1::shared_ptr<Derived>, bp::bases<Foo> > ...
> std::tr1::shared_ptr<Derived> >();
> How can I make it working just as with boost::shared_ptr?
There is no implicit conversion from a base class to the dervied.
The other way will work:
> Btw. I have seen  already, but it doesn't seem to cover that.
It does :-)
>  -
>  -
Glad you found this useful
> Best Regards,
> Piotr Jaroszynski
C++ Python language binding
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Cplusplus-sig