This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems with std::numeric_limits


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]