>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.

Hi Roman, 

Thanks for reply. If possible can you please guide me how to "teach"
Boost.Python about the custom SmartPtr. I have seen the link as suggested by
you but I am not getting much idea (may be because I am new in this area)
what exactly I need to do.

Do I need to write wrapper myself and insert it into the wrapper code
generated by py++ / I should use some interface to register my custom smart
pointer?

-- 
View this message in context: 
http://old.nabble.com/How-to-make-use-of--%3E-%28dereferncing%29-operator-in-pyplusplus-tp28239246p28241082.html
Sent from the Python - c++-sig mailing list archive at Nabble.com.

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to