Segfault when passing pointer from C++ to Python via Boost Python
Hello all, I am having issues passing pointers from C++ to python, as I describe here: http://stackoverflow.com/questions/18646694/pass-pointer-from-c-to-python-w-... In short, even the example of "Raw C++ pointers" from here: https://wiki.python.org/moin/boost.python/PointersAndSmartPointers causes a segfault when I compile and run it, although I can use other features of Boost Python successfully. The crash appears to be a segfault from invoke.hpp, in this function: template <class RC, class F BOOST_PP_ENUM_TRAILING_PARAMS_Z(1, N, class AC)> inline PyObject* invoke(invoke_tag_<false,false>, RC const& rc, F& f BOOST_PP_ENUM_TRAILING_BINARY_PARAMS_Z(1, N, AC, & ac) ) { return rc(f( BOOST_PP_ENUM_BINARY_PARAMS_Z(1, N, ac, () BOOST_PP_INTERCEPT) )); } Does anyone have any suggestions? Thanks, Alex
participants (1)
-
Alex K