ostream.tcc (basic_ostream<>::operator<<(long), [...]): Don't deal with oct and hex...
authorPaolo Carlini <pcarlini@suse.de>
Mon, 11 Jul 2005 09:48:31 +0000 (09:48 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 11 Jul 2005 09:48:31 +0000 (09:48 +0000)
commit8637038aa8da786fcb53e8192cf9dac20bc62ed5
tree6343aca46f182bb041925af7a81b63923d2157c7
parent1f97667f30ad19585986527b282e4ae0d1b3a1a3
ostream.tcc (basic_ostream<>::operator<<(long), [...]): Don't deal with oct and hex and casts to unsigned here...

2005-07-11  Paolo Carlini  <pcarlini@suse.de>

* include/bits/ostream.tcc (basic_ostream<>::operator<<(long),
basic_ostream<>::operator<<(long long)): Don't deal with oct
and hex and casts to unsigned here...
* include/bits/locale_facets.tcc (__int_to_char(_CharT*, long,
const _CharT*, ios_base::fmtflags), __int_to_char(_CharT*, long
long, const _CharT*, ios_base::fmtflags)): ... do that here,
instead, as per Table 57.
(num_put<>::_M_insert_int): Tidy treatment of numeric base and
sign.
* include/std/std_ostream.h (operator<<(short), operator<<(int)):
Adjust logic, as per the letter of the resolution of DR117 [WP].
* testsuite/22_locale/num_put/put/char/10.cc: New.
* testsuite/22_locale/num_put/put/wchar_t/10.cc: Likewise.
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/7.cc:
Likewise.
* testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/7.cc:
Likewise.

From-SVN: r101872
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/include/bits/ostream.tcc
libstdc++-v3/include/std/std_ostream.h
libstdc++-v3/testsuite/22_locale/num_put/put/char/10.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_put/put/wchar_t/10.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/char/7.cc [new file with mode: 0644]
libstdc++-v3/testsuite/27_io/basic_ostream/inserters_arithmetic/wchar_t/7.cc [new file with mode: 0644]