traits and numeric_limits

Luis Ibanez ibanez at cs.unc.edu
Thu May 18 15:59:28 EDT 2000


Hi,

One option to the fact that the header <limits> is
missing in gcc, (it appears only like <climits> and
doesn't contains the declaration for the class
"numeric_limits") is to use the numeric_limits class
defined in vxl/vnl.

It is located in

      vxl/vnl/vnl_numeric_limits.h

It is templated as the standard requires, and has been
specialized for :  int, float and double    respectively in

vxl/vnl/vnl_numeric_limit_int.h
vxl/vnl/vnl_numeric_limit_float.h
vxl/vnl/vnl_numeric_limit_double.h

It seems to have he same elements that are expected
from the standard.


Could that be equivalent to using <limits>
header and numeric_limits  class?




Luis


--
______________________________________________________________________

Luis Ibanez
Research Assistant Professor - Division of Neurosurgery
University of North Carolina at Chapel Hill
Sitterson Hall, CB#3175, Chapel Hill, NC 27599
email : ibanez at cs.unc.edu       home  : http://www.cs.unc.edu/~ibanez
phone : (919)-843-9961          fax   : (919)-962-1799
______________________________________________________________________





More information about the Insight-developers mailing list