[C++-sig] Pointers in boost::python 1.28

Marcelo A. Camelo camelo at esss.com.br
Thu Aug 29 14:42:47 CEST 2002

Just to clarify, the compiler complains when trying to instantiate
"callback<std::string>::call_method" on the overridden virtual method in
the derived callback class.



-----Original Message-----
From: c++-sig-admin at python.org [mailto:c++-sig-admin at python.org] On
Behalf Of Marcelo A. Camelo
Sent: quinta-feira, 29 de agosto de 2002 09:33
To: c++-sig at python.org
Subject: [C++-sig] Pointers in boost::python 1.28

Hi all!

I'm using boost to expose a c++ framework to python, but I hit a wall
when trying to wrap a struct with pointer attributes (to a wrapped
type). Is it possible to do this?

I've tried to work around this by changing my design not to need the
pointer attribute any more. Now I've got a method that receives the
pointer as argument. Exporting this method goes fine unless I try to
make it virtual: the compiler complains that there isn't an appropriated
overloaded method for converting the pointer to python (sorry for not
having the exact error message at hand, It's a home project). Am I doing
something wrong?

Any help is welcome.


C++-sig mailing list
C++-sig at python.org

More information about the Cplusplus-sig mailing list