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'
/usr/local/include/boost/type_traits/is_convertible.hpp:184:
instantiated from `boost::detail::is_convertible_impl'
/usr/local/include/boost/type_traits/is_enum.hpp:91: instantiated from
`boost::is_convertible'
/usr/local/include/boost/type_traits/is_enum.hpp:91: instantiated from
`boost::detail::is_enum_helper<false>::type'
/usr/local/include/boost/type_traits/is_enum.hpp:91: instantiated from
`boost::detail::is_enum_implVOS::AsyncConnect'
/usr/local/include/boost/type_traits/is_scalar.hpp:30: instantiated
from `boost::is_enumVOS::AsyncConnect'
/usr/local/include/boost/type_traits/is_scalar.hpp:30: instantiated
from `boost::detail::is_scalar_implVOS::AsyncConnect'
/usr/local/include/boost/type_traits/is_pod.hpp:35: instantiated from
`boost::is_scalarVOS::AsyncConnect'
/usr/local/include/boost/type_traits/is_pod.hpp:35: instantiated from
`boost::detail::is_pod_implVOS::AsyncConnect'
/usr/local/include/boost/type_traits/has_trivial_constructor.hpp:28:
instantiated from `boost::is_PODVOS::AsyncConnect'
/usr/local/include/boost/type_traits/has_trivial_constructor.hpp:28:
instantiated from `boost::is_podVOS::AsyncConnect'
/usr/local/include/boost/type_traits/has_trivial_constructor.hpp:28:
instantiated from `boost::detail::has_trivial_ctor_implVOS::AsyncConnect'
/usr/local/include/boost/type_traits/is_stateless.hpp:31: instantiated
from `boost::has_trivial_constructorVOS::AsyncConnect'
/usr/local/include/boost/type_traits/is_stateless.hpp:31: instantiated
from `boost::detail::is_stateless_implVOS::AsyncConnect'
/usr/local/include/boost/function/function_base.hpp:195: instantiated
from `boost::is_statelessVOS::AsyncConnect'
/usr/local/include/boost/function/function_base.hpp:195: instantiated
from `boost::detail::function::get_function_tagVOS::AsyncConnect'
/usr/local/include/boost/function/function_template.hpp:431:
instantiated from `boost::function0::assign_to (Functor)
[with Functor = VOS::AsyncConnect, R = void, Allocator =
allocatorboost::function_base]'
/usr/local/include/boost/function/function_template.hpp:293:
instantiated from `boost::function0::function0 (Functor)
[with Functor = VOS::AsyncConnect, R = void, Allocator =
allocatorboost::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'
/usr/local/include/boost/type_traits/add_reference.hpp:78: forward
declaration of `struct
boost::add_reference'
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)