Hi,
I have problem with pointer in function return. My code:
using namespace boost::python;
v8::Platform* InitializePlatform() {
v8::Platform* platform = v8::platform::CreateDefaultPlatform();
return platform;
}
BOOST_PYTHON_MODULE(hello)
{
def("InitializePlatform", InitializePlatform, return_value_policy<manage_new_object>());
}
Building is ok, but when i try call InitializePlatform i have error: Segmentation fault