[C++-sig] [boost.python] convert swig-wrapped c++-return values to python with boost.python

David Abrahams dave at boostpro.com
Sun Jul 20 15:26:20 CEST 2008


on Sun Jul 20 2008, Maximilian Matthe <Maxi.Matthe-AT-web.de> wrote:

> Hi!
>
> I still have the problem, that I have described below. I found out,
> that the same problem appears with any class that is not registered
> with boost.python but only with a custom converter. Returning values
> of those custom objects works fine, but returning pointers to existing
> objects gives the conversion error.

You probably need to register a converter for the pointer type
(wxWindow*) as well as the class type.  Actually I'd be a little
surprised if you were actually returning wxWindow by value.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com



More information about the Cplusplus-sig mailing list