Topic: Defect Report: Terminology in numeric_limits


Author: scleary@jerviswebb.com
Date: 1999/12/22
Raw View
Terminology in numeric_limits

Section: 18.2.1 [lib.limits]
Submitter: Stephen Cleary
Date: 21 December 1999

In some places in this section, the terms "fundamental types" and "scalar
types" are used  when the term "arithmetic types" is intended.  This is
incorrect because void is a  fundamental type and pointers are scalar types,
neither of which should have specializations  of numeric_limits.

Proposed Resolution:

Change 18.2 [lib.support.limits] para 1 from:
  The headers <limits>, <climits>, and <cfloat> supply characteristics of
  implementation-dependent fundamental types (3.9.1).
to:
  The headers <limits>, <climits>, and <cfloat> supply characteristics of
  implementation-dependent arithmetic types (3.9.1).

Change 18.2.1 [lib.limits] para 1 from:
  The numeric_limits component provides a C++ program with information about
various
  properties of the implementation's representation of the fundamental
types.
to:
  The numeric_limits component provides a C++ program with information about
various  properties of the implementation's representation of the arithmetic
types.

Change 18.2.1 [lib.limits] para 2 from:
  Specializations shall be provided for each fundamental type. . .
to:
  Specializations shall be provided for each arithmetic type. . .

Change 18.2.1 [lib.limits] para 4 from:
  Non-fundamental standard types. . .
to:
  Non-arithmetic standard types. . .

Change 18.2.1.1 [lib.numeric.limits] para 1 from:
  The member is_specialized makes it possible to distinguish between
fundamental types,  which have specializations, and non-scalar types, which
do not.
to:
  The member is_specialized makes it possible to distinguish between
arithmetic types,  which have specializations, and non-arithmetic types,
which do not.

 -Steve
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]





Author: Gabriel Dos_Reis <gdosreis@korrigan.inria.fr>
Date: 1999/12/23
Raw View
scleary@jerviswebb.com writes:

| Terminology in numeric_limits
|
| Section: 18.2.1 [lib.limits]
| Submitter: Stephen Cleary
| Date: 21 December 1999
|
| In some places in this section, the terms "fundamental types" and "scalar
| types" are used  when the term "arithmetic types" is intended.  This is
| incorrect because void is a  fundamental type and pointers are scalar types,
| neither of which should have specializations  of numeric_limits.

[...]

The LWG considered this issue, and the resolutions you're proposing
were suggested.

--
Gabriel Dos Reis, dosreis@cmla.ens-cachan.fr
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]