Topic: N2284 defect: header <limits> synopsis misses specializations
Author: pete@versatilecoding.com (Pete Becker)
Date: Mon, 25 Jun 2007 13:51:06 GMT Raw View
Daniel Kr=FCgler wrote:
> 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:
>=20
> template<> class numeric_limits<char16_t>;
> template<> class numeric_limits<char32_t>;
>
It does, as of tomorrow's version.
--=20
-- Pete
Roundhouse Consulting, Ltd. (www.versatilecoding.com)
Author of "The Standard C++ Library Extensions: a Tutorial and=20
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.comeaucomputing.com/csc/faq.html ]
Author: =?iso-8859-1?q?Daniel_Kr=FCgler?= <daniel.kruegler@googlemail.com>
Date: Mon, 25 Jun 2007 08:55:38 CST Raw View
Daniel Kr gler wrote:
> Further-on, std::numeric_limits has
> now finally cleaned-up it's responsibilities (see [limits])
> and claims to be specialized for all *fundamental* types
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.comeaucomputing.com/csc/faq.html ]
Author: =?iso-8859-1?q?Daniel_Kr=FCgler?= <daniel.kruegler@googlemail.com>
Date: Sun, 24 Jun 2007 19:29:24 CST Raw View
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 Kr gler
---
[ 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.comeaucomputing.com/csc/faq.html ]