[C++-sig] Re: Conversion of C++ return type.

David Abrahams dave at boost-consulting.com
Mon Mar 22 04:09:47 CET 2004

Hanz Meizer <steam at nurfuerspam.de> writes:

> Hi,
> Just wanted to notify the list that I found the solution. Besides some
> other errors I made one of the wrapped functions
> return_internal_reference. This didn't invoke the to_python_converter
> I registered, but tried to create a wrapped Any object, where no
> wrapper was existant of course. I made all functions
> copy_(non)const_reference and it seems that in this case the
> to_python_converter get's called all the time. That is reasonable, but
> I think it should be mentioned in the documentation 

What, specifically?

> so that people can
> check if all their functions use copy_const_reference, bacause if
> you're new to boost.python there are so many things that can be the
> cause that you just don't kow where to search

Please propose a patch to the documentation, so I know exactly what
you'd like to see explained, and what language you think would've
prevented your confusion.

Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list