Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2000-11-08 18:29:53


That's right, Lyle, py_cpp won't automatically convert raw pointers
to_python(). For more details, see the py_cpp documentation on pointers,
todo.txt in the py_cpp release, and/or previous boost messages on the topic.
Let me know if this fails to clear up any questions.

-Dave

----- Original Message -----
From: "Lyle Johnson" <ljohnson_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Wednesday, November 08, 2000 6:05 PM
Subject: RE: [boost] Help: Problems compiling this simple py_cpp test

> Dave,
>
> I checked the latest code out of CVS and that indeed solved the problem.
> Feeling lucky, I added a new function into the mix which exposed a
different
> compile-time error (see attached example.cpp and make.log as before). The
> problematic function is Stream::getContainer() and I can decipher just
> enough of the compiler error messages to deduce that it doesn't know how
to
> convert the function's return type (const Object*) into something that
> Python can use. I am looking at the code for PyExtensionClassConverters in
> extclass.h to try to understand what's going on but wanted to pass along
the
> information anyways.
>
> Thanks,
>
> Lyle
>
> > Sorry, Lyle. This is just part of the repercussions of adding support
for
> > non-const reference parameters to constructors. Just a nasty
> > metaprogramming
> > issue... anyway, try
> > http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/boost/development/py
> > _cpp/extcl
> > ass.h?cvsroot=boost
> > which should solve your problem.
> >
> > -Dave
>
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk