I have wrapped class in c++ and expose to python and when I call function member it work, problem is that I cannot access data (public member result in class Path has type std::list
BOOST_PYTHON_MODULE(map) // module name
{
class_<Path>("Path")
.def_readonly("result", &Path::result)
.def("findPathFromTo", &Path::findPathFromTo);
class_<Position>("Position")
.def(init<float, float, float>())
.def_readwrite("x", &Position::x)
.def_readwrite("y", &Position::y)
.def_readwrite("z", &Position::z);
};
and I call like
import map
path = map.Path()
path.findPathFromTo(2, 3, 34 ,34)
path.resultPath
last line throws exception
TypeError: No Python class registered for C++ class std::list<Position, std::allocator<Position> >