[Insight-developers] More than 17 template levels?

Brad King brad.king@kitware.com
Tue, 10 Jul 2001 14:52:55 -0400 (EDT)


> Is there a simple way to raise gcc's limit of 17 levels of templates?
> I want to test Lydia's multi-res registration example, but the
> libraries it uses won't compile under the current limit.
Add -ftemplate-depth-nn to your CXXFLAGS, where "nn" is the depth you
want.  Usually -ftemplate-depth-50 works well.

-Brad