id summary reporter owner description type status milestone component version severity resolution keywords cc 770 static assert for boost::python::make_constructor jfalk david_abrahams "{{{ You get a static assertion when using boost::python::make_constructor together with the call policy return_value_policy() Test case: ===================================================== #include namespace Test { using namespace boost::python; class Foo { }; Foo *fooCreator() { return new Foo(); } BOOST_PYTHON_MODULE(Test) { class_(""Foo"") .def(""__init__"", make_constructor(fooCreator, return_value_policy())); } } /* namespace Test */ Failure: ===================================================== /usr/include/boost/python/make_constructor.hpp: In instantiation of `boost::python::detail::constructor_policy >': /usr/include/boost/python/make_constructor.hpp:150: instantiated from `boost::python::api::object boost::python::detail::make_constructor_aux(F, const CallPolicies&, const Sig&) [with F = Test::Foo*(*)(), CallPolicies = boost::python::return_value_policy, Sig = boost::mpl::vector1]' /usr/include/boost/python/make_constructor.hpp:236: instantiated from `boost::python::api::object boost::python::make_constructor(F, const CallPolicies&) [with F = Test::Foo*(*)(), CallPolicies = boost::python::return_value_policy]' boost-python-test.cpp:14: instantiated from here /usr/include/boost/python/make_constructor.hpp:106: error: incomplete type ` boost::STATIC_ASSERTION_FAILURE' does not have member `value' Expected Result: ===================================================== Should compile }}}" Bugs closed python USE GITHUB Boost 1.34.0 Invalid