Topic: Appendix C.3 in N3290 is missing LLONG_MAX etc.


Author: Kevin McCarty<kmccarty@gmail.com>
Date: Fri, 3 Feb 2012 09:14:32 -0800 (PST)
Raw View
Hello,

These comments describe N3290; I don't have a copy of the actual C++
2011 standard so it's possible some or all of them are already fixed.

In Appendix C.3, Table 150 contains a list of 57 standard values from
the C library, with C.3.4 implying that it is an exhaustive list.  The
table seems to be just a merger of<climits>  and<cfloat>  contents.
However, the following three values are present in 18.3.3 (C library,
c.limits, Table 31 describing<climits>) but not Table 150:

LLONG_MIN, LLONG_MAX and ULLONG_MAX

Furthermore, in Table 150, USHRT_MAX is misspelled (as "USRT_MAX").

Additionally, the following two values are present in 18.3.3 (C
library, c.limits, Table 32 describing<cfloat>) but not Table 150:

DECIMAL_DIG, FLT_EVAL_METHOD

[Note that 18.3.3 describes<climits>  and<cfloat>  as having the same
contents as the C library headers<limits.h>  and<float.h>,
respectively, so we can exclude the possibility that the values I
named above are not named in Table 150 due to being only present in
the C++ headers and not the C headers.]

If someone who has access to the final standard could check whether or
not these issues are still present there, and if so, could submit a
defect report on my behalf, it would be greatly appreciated.


As an aside, it is not at all clear to me what is the distinction (or
why there is a distinction) in C.3 between Table 149 (Standard macros)
and Table 150 (Standard values).  For instance, it is certainly
arguable that at least HUGE_VAL, NULL, RAND_MAX and WCHAR_MIN/MAX
ought to be in Table 150 rather than Table 149.

As a further aside, it seems that Tables 149 and 150 are also missing
a number of macros from<cmath>  (26.8, c.math, Table 119) such as
HUGE_VALF, INFINITY, etc. but I didn't investigate further.


Thanks,
- Kevin B. McCarty


--
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- 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: Sat, 4 Feb 2012 08:22:11 -0800 (PST)
Raw View
Am 03.02.2012 18:14, schrieb Kevin McCarty:
>  These comments describe N3290; I don't have a copy of the actual C++
>  2011 standard so it's possible some or all of them are already fixed.

I checked the recent draft N3337 and they still seem to exist.

>  If someone who has access to the final standard could check whether or
>  not these issues are still present there, and if so, could submit a
>  defect report on my behalf, it would be greatly appreciated.

I forwarded your description to the project editor on your behalf.

Greetings from Bremen,

Daniel Kr   gler



--
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]