[Insight-developers] Templates and preprocessor macros
Benoit Scherrer
benoitscherrer at gmail.com
Mon Jul 11 12:10:29 EDT 2011
Hi,
Is there a way to use the C++ preprocessor macros that test the value of a
template parameter?
For example i want to do a generic image filter ( using itk::Image<type,
VImageDimension> ) that
will use itk::OrientImageFilter only for VImageDimension==3
However, it seems that the preprocessor tool does not 'expand' the templates
and
just don't know when VImageDimension==3 or not.
Is there any trick to do that, or is it a lost cause ?
Thanks a lot!
Benoit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110711/a04d7620/attachment.htm>
More information about the Insight-developers
mailing list