[C++-sig] more examples of automatic type conversion
Albert Strasheim
fullung at gmail.com
Mon May 7 12:10:35 CEST 2007
Hello all
On Sun, 06 May 2007, Albert Strasheim wrote:
> Hello all
>
> On Thu, 03 May 2007, Roman Yakovenko wrote:
>
> > On 5/3/07, Albert Strasheim <fullung at gmail.com> wrote:
> <snip>
> > >Anyway, I've more or less got pass-by-value and return-by-value working
> > >using Roman's example, but I can't quite figure out how to make
> > >Boost.Python convert pointer and reference arguments or return values
> > >into PyObject*'s using the same scheme. Should this just work if I have
> > >my automatic conversion set up correctly, or is there additional magic
> > >that needs to be added? Again, it would be *very* useful if copying
> > >could be avoided here.
> >
> >
> > Post small example, may be I will be able to help
> <snip>
Looks like SWIG typemaps do exactly what I want in this case.
Cheers,
Albert
More information about the Cplusplus-sig
mailing list