Title
27.6.2.5.2 does not handle (unsigned) long long
Status
cd1
Section
[ostream.inserters.arithmetic]
Submitter
Daniel Krügler

Created on 2007-02-17.00:00:00 last changed 171 months ago

Messages

Date: 2010-10-21.18:28:33

Proposed resolution:

In [ostream.inserters.arithmetic]/1 change the third sentence

When val is of type bool, long, unsigned long, long long, unsigned long long, double, long double, or const void*, the formatting conversion occurs as if it performed the following code fragment:

Date: 2010-10-21.18:28:33

[ Alisdair: In addition to the (unsigned) long long problem, that whole paragraph misses any reference to extended integral types supplied by the implementation - one of the additions by core a couple of working papers back. ]

Date: 2007-02-17.00:00:00

The arithmetic inserters are described in [ostream.inserters.arithmetic]. Although the section starts with a listing of the inserters including the new ones:

operator<<(long long val );
operator<<(unsigned long long val );

the text in paragraph 1, which describes the corresponding effects of the inserters, depending on the actual type of val, does not handle the types long long and unsigned long long.

History
Date User Action Args
2010-10-21 18:28:33adminsetmessages: + msg3309
2010-10-21 18:28:33adminsetmessages: + msg3308
2007-02-17 00:00:00admincreate