The numeric_limits traits is supposed to be a general way of obtaining various type infomation, to be able to do things like
template T min(con
This is an old thread, but there is an updated answer:
C++11 added a lowest() function to std::numeric_limits (See here)
lowest()
std::numeric_limits
So you can now call std::numeric_limits::lowest() to get the lowest representable negative value.
std::numeric_limits::lowest()