Boost logo

Boost Users :

From: Eyal Inbar (eyalin_at_[hidden])
Date: 2005-03-28 08:29:26


Thanks
But how and where can i changed the flag in g++ ?
eyal

-----Original Message-----
From: boost-users-bounces_at_[hidden]
[mailto:boost-users-bounces_at_[hidden]]On Behalf Of Malte Starostik
Sent: Monday, March 28, 2005 5:37 AM
To: boost-users_at_[hidden]
Subject: Re: [Boost-users] compile error

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
_______________________________________________
Boost-users mailing list
Boost-users_at_[hidden]
http://lists.boost.org/mailman/listinfo.cgi/boost-users


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