ITK  4.8.0
Insight Segmentation and Registration Toolkit
SphinxExamples/src/Core/Common/ConceptCheckingIsFloatingPoint/Code.cxx
#include "itkImage.h"
template< typename TImage >
void IsPixelTypeFloatingPoint(const TImage* const)
{
}
int main( int, char* [] )
{
const unsigned int Dimension = 2;
typedef itk::Image< float, Dimension > FloatImageType;
FloatImageType::Pointer f = FloatImageType::New();
IsPixelTypeFloatingPoint( f.GetPointer() );
typedef itk::Image< double, Dimension > DoubleImageType;
DoubleImageType::Pointer d = DoubleImageType::New();
IsPixelTypeFloatingPoint( d.GetPointer() );
return EXIT_SUCCESS;
}