N2284 defect: header <limits> synopsis misses specializations

N2284 defect: header <limits> synopsis misses specializations

Post by Daniel Krl » Tue, 26 Jun 2007 04:29:24


According to [basic.fundamental] p. 5+7 the newly
added character types char16_t and char32_t are distinct
fundamental types. Further-on, std::numeric_limits has
now finally cleaned-up it's responsibilities (see [limits])
and claims to be specialized for all *fundamental* types
(p. 2), but the header <limits> synopsis does not contain
the members:

template<> class numeric_limits<char16_t>;
template<> class numeric_limits<char32_t>;

I propose to add them just before the specialization for
wchar_t.

Further on I would like to repeat an issue mentioned in an
earlier posting on february 15th that even with these added
specializations the list of [limits]/"header<limits> synopsis"
is still incomplete, because according to [basic.fundamental]/2
there might exist so-called "extended integer types", which
also belong to the fundamental types and which are currently
not mentioned in the specialization list of [limits]. To fix this
issue I propose to add one final line to the header<limits>
synopsis:

. // Further specializations for each extended integer type

Greetings from Bremen,

Daniel Krler


---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.yqcomputer.com/ ]
 
 
 

N2284 defect: header <limits> synopsis misses specializations

Post by Daniel Krl » Tue, 26 Jun 2007 17:55:38


Sorry, this should have been *arithmetic*. The remainder
of the posting is unaffected by this error.

Greetings,

Daniel


---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.yqcomputer.com/ ]

 
 
 

N2284 defect: header <limits> synopsis misses specializations

Post by pete » Tue, 26 Jun 2007 22:51:06


It does, as of tomorrow's version.

--

-- Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com)
Author of "The Standard C++ Library Extensions: a Tutorial and
Reference." (www.petebecker.com/tr1book)

---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.yqcomputer.com/ ]