Boost logo

Boost Users :

From: Reed Hedges (yg-boost-users_at_[hidden])
Date: 2003-03-26 16:13:01


Hello, Has anyone else had this problem? I am trying to build a program
that uses the boost_thread library (v. 1.30.0), but get this error
repeatedly:

/usr/local/include/boost/type_traits/is_convertible.hpp: At top level:
/usr/local/include/boost/type_traits/is_convertible.hpp:184: template
instantiation depth exceeds
maximum of 17 (use -ftemplate-depth-NN to increase the maximum)
instantiating `struct boost::add_reference<VOS::AsyncConnect &>'
/usr/local/include/boost/type_traits/is_convertible.hpp:184:
instantiated from `boost::detail::is_convertible_impl<VOS::AsyncConnect
&, boost::detail::int_convertible>'
/usr/local/include/boost/type_traits/is_enum.hpp:91: instantiated from
`boost::is_convertible<VOS::AsyncConnect &, boost::detail::int_convertible>'
/usr/local/include/boost/type_traits/is_enum.hpp:91: instantiated from
`boost::detail::is_enum_helper<false>::type<VOS::AsyncConnect &>'
/usr/local/include/boost/type_traits/is_enum.hpp:91: instantiated from
`boost::detail::is_enum_impl<VOS::AsyncConnect>'
/usr/local/include/boost/type_traits/is_scalar.hpp:30: instantiated
from `boost::is_enum<VOS::AsyncConnect>'
/usr/local/include/boost/type_traits/is_scalar.hpp:30: instantiated
from `boost::detail::is_scalar_impl<VOS::AsyncConnect>'
/usr/local/include/boost/type_traits/is_pod.hpp:35: instantiated from
`boost::is_scalar<VOS::AsyncConnect>'
/usr/local/include/boost/type_traits/is_pod.hpp:35: instantiated from
`boost::detail::is_pod_impl<VOS::AsyncConnect>'
/usr/local/include/boost/type_traits/has_trivial_constructor.hpp:28:
instantiated from `boost::is_POD<VOS::AsyncConnect>'
/usr/local/include/boost/type_traits/has_trivial_constructor.hpp:28:
instantiated from `boost::is_pod<VOS::AsyncConnect>'
/usr/local/include/boost/type_traits/has_trivial_constructor.hpp:28:
instantiated from `boost::detail::has_trivial_ctor_impl<VOS::AsyncConnect>'
/usr/local/include/boost/type_traits/is_stateless.hpp:31: instantiated
from `boost::has_trivial_constructor<VOS::AsyncConnect>'
/usr/local/include/boost/type_traits/is_stateless.hpp:31: instantiated
from `boost::detail::is_stateless_impl<VOS::AsyncConnect>'
/usr/local/include/boost/function/function_base.hpp:195: instantiated
from `boost::is_stateless<VOS::AsyncConnect>'
/usr/local/include/boost/function/function_base.hpp:195: instantiated
from `boost::detail::function::get_function_tag<VOS::AsyncConnect>'
/usr/local/include/boost/function/function_template.hpp:431:
instantiated from `boost::function0<R, Allocator>::assign_to (Functor)
[with Functor = VOS::AsyncConnect, R = void, Allocator =
allocator<boost::function_base>]'
/usr/local/include/boost/function/function_template.hpp:293:
instantiated from `boost::function0<R, Allocator>::function0 (Functor)
[with Functor = VOS::AsyncConnect, R = void, Allocator =
allocator<boost::function_base>]'
remotesocketsite.cc:565: instantiated from here
/usr/local/include/boost/type_traits/is_convertible.hpp:184: invalid use
of undefined type `struct
boost::add_reference<VOS::AsyncConnect &>'
/usr/local/include/boost/type_traits/add_reference.hpp:78: forward
declaration of `struct
boost::add_reference<VOS::AsyncConnect &>'

VOS::AsyncConnect is my program's class.
Setting -ftempate-depth-20 resolves the problem.

This problem does not appear in Boost 1.29.0

Any information is greatly appreciated.

Thanks

reed

PS. Here is the full source files:
        http://www-robotics.cs.umass.edu/~reed/remotesocketsite.hh
        http://www-robotics.cs.umass.edu/~reed/remotesocketsite.cc

The entire project can be downloaded from anonymous CVS (see
http://interreality.org)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net