Topic: Defect in N2134: 27.6.2.5.2 does not handle (unsigned) long long
Author: "=?iso-8859-1?q?Daniel_Kr=FCgler?=" <daniel.kruegler@googlemail.com>
Date: Sat, 17 Feb 2007 18:51:42 CST Raw View
Hello,
The arithmetic inserters are described in 27.6.2.5.2
[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.
Proposed solution:
In 27.6.2.5.2/1 change the third sentence
"When val is of type bool, long, unsigned long, double, long double,
or const void*,
the formatting conversion occurs as if it performed the following code
fragment:"
to
"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:"
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 ]