[C++-sig] help with boost error

Siddharth Ram sram at qualcomm.com
Thu Jun 30 22:04:19 CEST 2005


I get the following error(s) when building  ACE header files (public 
domain software)

Here's the error: I am trying to understand the reason for the static 
assertion failure. removing either/boost of the class_ from the input 
file still results in the error. If I remove both class_ the error goes away

/usr/include/boost/python/with_custodian_and_ward.hpp: In static member 
function `static PyObject* 
boost::python::with_custodian_and_ward_postcall<custodian, ward, 
BasePolicy_>::postcall(const ArgumentPackage&, PyObject*) [with 
ArgumentPackage = PyObject*, unsigned int custodian = 0u, unsigned int 
ward = 1u, BasePolicy_ = boost::python::default_call_policies]':
/usr/include/boost/python/detail/caller.hpp:201:   instantiated from 
`PyObject* boost::python::detail::caller_arity<2u>::impl<F, Policies, 
Sig>::operator()(PyObject*, PyObject*) [with F = 
ACE_Data_Block*(<unnamed>::ACE_Data_Block_Wrapper::*)(long unsigned int) 
const, Policies = boost::python::return_internal_reference<1u, 
boost::python::default_call_policies>, Sig = 
boost::mpl::vector3<ACE_Data_Block*, <unnamed>::ACE_Data_Block_Wrapper&, 
long unsigned int>]'
/usr/include/boost/python/object/py_function.hpp:38:   instantiated from 
`PyObject* 
boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, 
PyObject*) [with Caller = boost::python::detail
::caller<ACE_Data_Block*(<unnamed>::ACE_Data_Block_Wrapper::*)(long 
unsigned int) const, boost::python::return_internal_reference<1u, 
boost::python::default_call_policies>, 
boost::mpl::vector3<ACE_Data_Block*, <unnamed>::ACE_Data_Block_Wrapper&, 
long unsigned int> >]'
test/protocol/ranc/RLP/python/boost/ace.cpp:103:   instantiated from here
/usr/include/boost/python/with_custodian_and_ward.hpp:87: warning: 
comparison of unsigned expression < 0 is always false
/usr/include/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 = char*, T = char, Holder = 
boost::python::objects::pointer_holder<char*, char>, Derived = 
boost::python::objects::make_ptr_instance<char, 
boost::python::objects::pointer_holder<char*, char> >]':
/usr/include/boost/python/to_python_indirect.hpp:96:   instantiated from 
`static PyObject* 
boost::python::detail::make_reference_holder::execute(T*) [with T = char]'
/usr/include/boost/python/to_python_indirect.hpp:60:   instantiated from 
`PyObject* boost::python::to_python_indirect<T, 
MakeHolder>::execute(const U&, mpl_::false_) const [with U = char, T = 
char*, MakeHolder = boost::python::detail::make_reference_holder]'
/usr/include/boost/python/to_python_indirect.hpp:48:   instantiated from 
`PyObject* boost::python::to_python_indirect<T, MakeHolder>::execute(U*, 
mpl_::true_) const [with U = char, T = char*, MakeHolder = 
boost::python::detail::make_reference_holder]'
/usr/include/boost/python/to_python_indirect.hpp:37:   instantiated from 
`PyObject* boost::python::to_python_indirect<T, 
MakeHolder>::operator()(const U&) const [with U = char*, T = char*, 
MakeHolder = boost::python::detail::make_reference_holder]'
/usr/include/boost/python/detail/invoke.hpp:88:   instantiated from 
`PyObject* 
boost::python::detail::invoke(boost::python::detail::invoke_tag_< 
false,  true>, const RC&, F&, TC&) [with RC = 
boost::python::to_python_indirect<char*, 
boost::python::detail::make_reference_holder>, F = 
char*(ACE_Data_Block::*)() const, TC = 
boost::python::arg_from_python<ACE_Data_Block&>]'
/usr/include/boost/python/detail/caller.hpp:199:   instantiated from 
`PyObject* boost::python::detail::caller_arity<1u>::impl<F, Policies, 
Sig>::operator()(PyObject*, PyObject*) [with F = 
char*(ACE_Data_Block::*)() const, Policies = 
boost::python::return_internal_reference<1u, 
boost::python::default_call_policies>, Sig = boost::mpl::vector2<char*, 
ACE_Data_Block&>]'
/usr/include/boost/python/object/py_function.hpp:38:   instantiated from 
`PyObject* 
boost::python::objects::caller_py_function_impl<Caller>::operator()(PyObject*, 
PyObject*) [with Caller = 
boost::python::detail::caller<char*(ACE_Data_Block::*)() const, 
boost::python::return_internal_reference<1u, 
boost::python::default_call_policies>, boost::mpl::vector2<char*, 
ACE_Data_Block&> >]'
test/protocol/ranc/RLP/python/boost/ace.cpp:103:   instantiated from here
/usr/include/boost/python/object/make_instance.hpp:24: error: incomplete 
type `boost::STATIC_ASSERTION_FAILURE< false>' used in nested name specifier
/usr/include/boost/python/object/make_instance.hpp:24: error: size of 
array has non-integral type `<type error>'

The input file is attached. thanks for your help


-------------- next part --------------
A non-text attachment was scrubbed...
Name: ace.cpp
Type: text/x-c++src
Size: 18735 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20050630/9a64f9f2/attachment.cpp>


More information about the Cplusplus-sig mailing list