Why is std::numeric_limits::max() a function?
To expand on Neil’s remark, std::numeric_limit<T> is available for any number type including floating point numbers, and if you dig through the comp.lang.c++ thread, you’ll see the mention that it might not be possible to define the static variables for floating point values. So, for consistency they decided to put both integral and floating points … Read more