Problems with std::numeric_limits

Martin Sebor sebor@roguewave.com
Sat Jan 14 18:26:00 GMT 2006


Paolo Carlini wrote:
> Ed Smith-Rowland wrote:
> 
> 
>>This did not correspond to my idea of minimum surprise :oP.
> 
> 
> But Roberto also explained that the is_specialized member is there for a
> reason...

FWIW, if the standard says that numeric_limits<cv-qualified T>
is different than numeric_limits<T> I would consider it a defect
in the standard -- thecv qualifiers have no impact on the basic
properties of a type, so I don't see any reason why numeric_limits
should make a distinction between them either.

Martin



More information about the Libstdc++ mailing list