[Insight-developers] FW: template depth limit
Lydia Ng
lng@insightful.com
Wed, 27 Jun 2001 11:03:19 -0700
resending this - not sure if my company email
is down or if the mailing-list
---------------------------------------
A few days ago I checked in multi resolution version
of the rigid mutual information registration.
This new class has manage to exceed the gcc default
template depth limit of 17. This is why the associated
test is failing to compile on Linux and SunOS platforms.
The template depth limit can be increase to NN via flag
-ftemplate-depth-NN
I have experimented with this on Cygwin by setting
the CMAKE_CXX_FLAGS in the CMakeCache.txt
CMAKE_CXX_FLAGS:STRING=-g -O2 -ftemplate-depth-20
I re-ran CMake and the test compiled and passed.
So:
1) Should we increase this depth by default for ITK
by setting the flag in some configuration file.
2) If so, what value should we increase it to.
Also what is the impact in increasing it.
Cheers,
Lydia