[C++-sig] problems downcasting intrusive_ptr.
Roman Yakovenko
roman.yakovenko at gmail.com
Tue Feb 13 19:42:56 CET 2007
On 2/13/07, Lucio Moser <lucio at image-engine.com> wrote:
> Yes, that's what I wanted. I have a core C++ library that works using
> intrusive_ptr everywhere. And I'm binding that to Python.
> The downcasting to a Python class works if I compile my test case using
> shared_ptr. There should be a way to do it with intrusive_ptr.
I still don't understand what you try to do. Please start new thread with clear
explanation what you tries to do.
> I appreciate your help. The code that solves the previous problem is
> listed below. It also shows the new problem. To compile it for
> shared_ptr, just define USE_SHARED_PTR. The functions upcast and
> store/retrieve will work correctly for shared_ptr and not for
> intrusive_ptr (shown below).
Thanks.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
More information about the Cplusplus-sig
mailing list