[C++-sig] Boost Python - How to export boost::shared_ptr<std::string>

Romain CHANU romainchanu at gmail.com
Tue Dec 15 08:36:12 CET 2009


Hi,

I want to export an attribute which is a boost::shared_ptr<std::string> and
I got the following error:
" TypeError: No Python class registered for C++ class class
boost::shared_ptr<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > >  "
I found an old post on a similar issue :
http://old.nabble.com/Boost.python---How-to-export-shared_ptr%3Cvector%3Cshared_ptr%3Cstring%3E-%3E-%3E--tt22389131.html#a22389131but
no one has replied :-\

Can anyone tell me how can I export this type?

Thank you!

Romain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20091215/025d8e3e/attachment.htm>


More information about the Cplusplus-sig mailing list