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
You can use Boost libraries. The library Numeric Conversions provides a class called bounds that can be used consistently.
See the documentation here.