[C++-sig] 'boost::STATIC_ASSERTION_FAILURE<false>' problem ...
Pierre Barbier de Reuille
pierre.barbier at cirad.fr
Wed Jul 9 14:36:46 CEST 2003
Hello,
I have a type I want to export but without function nor initialisation.
The line defining the type is :
class_<Delaunay2DGraph::vertex_descriptor>( "cell_descriptor", no_init );
This type is defined in an object defined in a library (the Boost Graph
Library).
Bur when I try to compile my module I have this error I don't understand :
/home/barbier/apps/boost/boost/python/object/make_instance.hpp: In static
member function `static PyObject*
boost::python::objects::make_instance_impl<T, Holder,
Derived>::execute(Arg&) [with Arg = const boost::reference_wrapper<void*
const>, T = void*, Holder = boost::python::objects::value_holder<void*>,
Derived = boost::python::objects::make_instance<void*,
boost::python::objects::value_holder<void*> >]':
/home/barbier/apps/boost/boost/python/object/class_wrapper.hpp:27:
instantiated from `static PyObject*
boost::python::objects::class_cref_wrapper<Src,
MakeInstance>::convert(const Src&) [with Src = void*, MakeInstance =
boost::python::objects::make_instance<void*,
boost::python::objects::value_holder<void*> >]'
/home/barbier/apps/boost/boost/python/converter/as_to_python_function.hpp:28:
instantiated from `static PyObject*
boost::python::converter::as_to_python_function<T,
ToPython>::convert(const void*) [with T = void*, ToPython =
boost::python::objects::class_cref_wrapper<void*,
boost::python::objects::make_instance<void*,
boost::python::objects::value_holder<void*> > >]'
/home/barbier/apps/boost/boost/python/to_python_converter.hpp:34:
instantiated from `boost::python::to_python_converter<T,
Conversion>::to_python_converter() [with T = void*, Conversion =
boost::python::objects::class_cref_wrapper<void*,
boost::python::objects::make_instance<void*,
boost::python::objects::value_holder<void*> > >]'
/home/barbier/apps/boost/boost/python/class.hpp:101: instantiated from
`void
boost::python::detail::register_class_to_python(boost::mpl::bool_<true>,
SelectHolder, T*) [with T = void*, SelectHolder =
boost::python::objects::detail::select_value_holder<void*, void*>]'
/home/barbier/apps/boost/boost/python/class.hpp:577: instantiated from
`void boost::python::class_<T, X1, X2, X3>::register_() const [with T =
void*, X1 = boost::python::detail::not_specified, X2 =
boost::python::detail::not_specified, X3 =
boost::python::detail::not_specified]'
/home/barbier/apps/boost/boost/python/class.hpp:605: instantiated from
`boost::python::class_<T, X1, X2, X3>::class_(const char*,
boost::python::no_init_t) [with T = void*, X1 =
boost::python::detail::not_specified, X2 =
boost::python::detail::not_specified, X3 =
boost::python::detail::not_specified]'
editor_python.cpp:255: instantiated from here
/home/barbier/apps/boost/boost/python/object/make_instance.hpp:25: `sizeof'
applied to incomplete type `boost::STATIC_ASSERTION_FAILURE<false>'
Any idea about what I need to do ?
Thanks,
--
Pierre Barbier de Reuille
INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France
tel : (33) 4 67 61 65 77 fax : (33) 4 67 61 56 68
More information about the Cplusplus-sig
mailing list