[Insight-developers] min() an max() should return bool type

Lorensen, William E (Research) lorensen at crd.ge.com
Sun Oct 9 19:42:01 EDT 2005


Gaetan,
My cut and paste error. Thanks! I've checked in a change.

Bill


-----Original Message-----
From: insight-developers-bounces+lorensen=crd.ge.com at itk.org
[mailto:insight-developers-bounces+lorensen=crd.ge.com at itk.org]On Behalf
Of Gaetan Lehmann
Sent: Sunday, October 09, 2005 4:05 PM
To: insight-developers at itk.org
Subject: [Insight-developers] min() an max() should return bool type



Hi,

in NumericTraits.h, min() and max() was recently added for bool but return 
char. I think they should return bool :-)

+  static char min() { return false; }
+  static char max() { return true; }

Gaetan
_______________________________________________
Insight-developers mailing list
Insight-developers at itk.org
http://www.itk.org/mailman/listinfo/insight-developers


More information about the Insight-developers mailing list