Is there a standard way to find the minimum value for a data type?  I'm
thinking along the lines of std::numeric_li mits<T>::min(). But that
doesn't work for floating point types. I can't use
(-std::numeric_li mits<T>::max()) either, because that won't work for
unsigned types (and technically won't work for signed integer types and
others either, although it would probably be "good enough" for them).
Do I need to implement a new template that uses
std::numeric_li mits<>::min() and just specialize it for floats/doubles?
Or is this already solved somewhere in the library?
Thanks,
Adam H. Peterson
							
						
					thinking along the lines of std::numeric_li mits<T>::min(). But that
doesn't work for floating point types. I can't use
(-std::numeric_li mits<T>::max()) either, because that won't work for
unsigned types (and technically won't work for signed integer types and
others either, although it would probably be "good enough" for them).
Do I need to implement a new template that uses
std::numeric_li mits<>::min() and just specialize it for floats/doubles?
Or is this already solved somewhere in the library?
Thanks,
Adam H. Peterson
 
	
Comment