On Wed, Apr 14, 2010 at 10:25 AM, vishal bayskar
<vishal.bays...@nechclst.in> wrote:
>
> Hi I have a requirement of using dereferencing pointer, like in the below
> code
>
>...
>
> Below warnings displayed. Looking at warnings it seems like operator -> is
> not supported in pyplusplus.
>
> If operator -> is not supported then what is the mechanism for using it?
> ...

You should not export export "SmartPtr" class as is. You can "teach"
Boost.Python to understand that an object is the instance of SmartPtr
class and it will handle for you and your users "operator*" and
"operator->".

The following example (
http://language-binding.net/pyplusplus/troubleshooting_guide/smart_ptrs/smart_ptrs.html
) should help you. Also, in the past there were a lot of discussions
on this subject, so using Google will definitely help.

-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to