00001 #ifndef __itk_common_vnl_complex_traits_char_h__
00002 #define __itk_common_vnl_complex_traits_char_h__
00003
00004 #include <vnl/vnl_complex_traits.h>
00005
00006
00007 #define VCL_DEFINE_SPECIALIZATION_MACRO(T) \
00008 VCL_DEFINE_SPECIALIZATION struct vnl_complex_traits<T > \
00009 { \
00010 enum { isreal = true }; \
00011 static T conjugate(T x) { return x; } \
00012 static vcl_complex<T> complexify(T x) { return vcl_complex<T >(x, (T)0); } \
00013 }
00014
00015 VCL_DEFINE_SPECIALIZATION_MACRO(char);
00016 #undef VCL_DEFINE_SPECIALIZATION_MACRO
00017
00018 #endif