[Insight-developers] ITK_MANUAL_INSTATIATION in txx files
Luis Ibanez
ibanez at cs.unc.edu
Tue Jun 27 18:02:01 EDT 2000
Hi,
We are currently using the symbol
"ITK_MANUAL_INSTANTIATION"
in the header of templated classes, to decide
whether to include or not the txx file containing
the definition of templated methods.
It seems that this mechanism needs to be
complemented by including a block like:
#ifdef ITK_MANUAL_INSTANTIATION
#include <thisclass.h>
#endif
In the corresponding thisclass.txx file.
This is to avoid an infinit recursion when the symbol
is not used.
That is,
when the .h file includes the .txx,
the .txx file should not include the .h.
Luis
More information about the Insight-developers
mailing list