[C++-sig] [Boost.Python] shared_ptr<const T>
David Abrahams
dave at boost-consulting.com
Thu Nov 23 22:51:42 CET 2006
"Roman Yakovenko" <roman.yakovenko at gmail.com> writes:
> On 11/20/06, Charles Flèche <charlesf at the-mill.com> wrote:
>>
>> > I think you should also register implicit conversion between smart pointers
>> > http://boost.org/libs/python/doc/v2/implicit.html#implicitly_convertible-spec
>>
>>
>> Thank you a lot Kirill and Roman, it's working well now !
>
> I just created and tested a complete solution to the problem:
> http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/docs/bpl_lessons_learned/shared_ptr/solution.cpp?view=markup
> http://pygccxml.svn.sourceforge.net/viewvc/pygccxml/pyplusplus_dev/docs/bpl_lessons_learned/shared_ptr/test.py?view=markup
>
> Hope this will be helpful for other too.
Hi Roman,
Thanks for giving people a stopgap solution. Your overload of
get_pointer is clever but unfortunately evil. How about submitting a
patch to Boost.Python that actually fixes the problem?
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list