[Insight-developers] Re: traits and numeric_limits
    Josh Cates 
    cates at rolle.engr.utk.edu
       
    Thu Jun  8 12:11:19 EDT 2000
    
    
  
Hello Will,
With the addition of the numeric traits code, I cannot compile such things
as:
 itkImage< complex<float> >::Pointer = itkImage< complex<float> >
 
or in general: 
 itkImage< myClass >::Pointer = itkImage< myClass >
because itkScalarTraits<myClass> and itkVectorTraits<myClass> expect a
type named "ValueType" in class myClass.
How do I get around the requirement for defining a ValueType for
complex<> and myClass?
Thanks,
Josh.
+--+--+--+--+--+--+--+--+--+--+--+--
 Josh Cates			
 Dept. of Electrical Engineering	
 University of Tennessee, Knoxville
 Email: jecates at utk.edu
 Phone: (865) 974-0694
 URL:   www.cs.utk.edu/~cates
--+--+--+--+--+--+--+--+--+--+--+---
On Mon, 22 May 2000, Will Schroeder wrote:
> Hi Luis, Jim -
> 
> I modified itkNumericTraits.h to include <limits> on the PC, and
> ../Insight3DParty/vxl/vnl/vnl_numeric_limits.h on everything else,
> plus created a #define ITK_NUMERIC_LIMITS. Could you (and anyone with
> a Unix system) please check this out...the #ifdef is probably not
> right for Unix systems because some do have a <limits> file.
> 
> Will
> 
    
    
More information about the Insight-developers
mailing list