
Eyal Inbar schrieb:
Hello
I download boost to window2000 OS and run the quick_tour.cpp on VC++ 6 without trouble.
But when i run it on linux with KDevelop i get
/usr/local/include/boost/iterator/iterator_adaptor.hpp:218: template instantiation exceeds
maximum of 17 (use -ftemplate-depth-NN to increase the maximum) ^^^^^^^^^^^^^^^^^^^ here... instantiating 'struct
boost::mpl::eval_if<boos::is_convertible<random_access_itarator_tag,
boost::incrementable_traversal_tag>,boost::mpl::identity<random_access_iterator_tag>,
boost::detail::old_category_to_traversal<random_access_iterator_tag> >'
...it tells you what to do. The C++ standard speficies a limit of 17 for recursively nested template instantiations. To have g++ accept deeper nested templates, add sth. like -ftemplate-depth-20 (or more than 20 as needed) to the compile command (CXXFLAGS). Now I wonder whether "recursively nested" applies only to a< a< a< a< ... > > > > or also to a< b< c< d< ... > > > > and g++ misinterpreted that... HTH, Malte