[C++-sig] Re: 'boost::STATIC_ASSERTION_FAILURE<false>' problem ...
David Abrahams
dave at boost-consulting.com
Wed Jul 9 15:50:02 CEST 2003
Pierre Barbier de Reuille <pierre.barbier at cirad.fr> writes:
> 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 :
>
<snip>
> /home/barbier/apps/boost/boost/python/object/make_instance.hpp:25: `sizeof'
> applied to incomplete type `boost::STATIC_ASSERTION_FAILURE<false>'
Just look at the source line:
BOOST_STATIC_ASSERT(is_class<T>::value);
The problem is that you're trying to export a non-class type with
class_<...>.
HTH,
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list