You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The note implies that the types of constant macros defined in <climits>
may differ from that of C, but no nomative rule say so, and there is no
reason to allow such incompatibilities.
The note was added as the resolution of LWG issue cplusplus#416.
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#416
But the analysis, which based on rules of integer constants, was wrong:
The type of constant macros are defined in C99 (5.2.4.2.1 p1) by rules
of integer promotions. So LONG_MAX always has type long (integer
promotions has no effect for long), even if the actual range of long and
int are equal. That should hold in C++, too.
N4296 27.7.2.4 [istream.manip] says:
This isn't a synopsis. It's a "definition", where the Standard conventionally doesn't depict the namespace.
27.7.3.8 [ostream.manip] is similarly affected.
The text was updated successfully, but these errors were encountered: