std_istream.h (op>> signed,unsigned char): Must use reinterpret_cast, not static_cast.
2001-02-06 Phil Edwards <pme@sources.redhat.com> * include/bits/std_istream.h (op>> signed,unsigned char): Must use reinterpret_cast, not static_cast. From-SVN: r39493
This commit is contained in:
parent
df10e9ece3
commit
0cc21532eb
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-02-06 Phil Edwards <pme@sources.redhat.com>
|
||||
|
||||
* include/bits/std_istream.h (op>> signed,unsigned char): Must
|
||||
use reinterpret_cast, not static_cast.
|
||||
|
||||
2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* acinclude.m4 (gxx_include_dir): Quote, fix regression.
|
||||
|
|
|
@ -240,12 +240,12 @@ namespace std {
|
|||
template<class _Traits>
|
||||
basic_istream<char, _Traits>&
|
||||
operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
|
||||
{ return (__in >> static_cast<char>(__c)); }
|
||||
{ return (__in >> reinterpret_cast<char&>(__c)); }
|
||||
|
||||
template<class _Traits>
|
||||
basic_istream<char, _Traits>&
|
||||
operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
|
||||
{ return (__in >> static_cast<char>(__c)); }
|
||||
{ return (__in >> reinterpret_cast<char&>(__c)); }
|
||||
|
||||
template<typename _CharT, typename _Traits>
|
||||
basic_istream<_CharT, _Traits>&
|
||||
|
|
Loading…
Add table
Reference in a new issue