hello_world.hpp:
=2D-------------
struct A {};
struct B {
A& a;
};
=2D-------------
run through pygccxml produces:
// This file has been generated by pyplusplus.
#include "boost/python.hpp"
#include "/home/nbecker/tmp/hello_world.hpp"
namespace bp =3D boost::python;
BOOST_PYTHON_MODULE(hw){
bp::class_< B, boost::noncopyable >( "B", bp::no_init ) =20
.def_readonly( "a", &B::a );
bp::class_< A >( "A" );
}
But this doesn't compile:
g++ -I /usr/include/python2.4 -I /usr/local/src/boost.cvs hello_world.py.cp=
p=20
hello_world.py.cpp: In function =E2=80=98void init_module_hw()=E2=80=99:
hello_world.py.cpp:11: error: cannot create pointer to reference member =E2=
=80=98B::a=E2=80=99
|