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

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Sun Oct 9 16:05:13 EDT 2005


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


More information about the Insight-developers mailing list