mirror of git://gcc.gnu.org/git/gcc.git
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
|
|
@ -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>
|
2001-02-06 Benjamin Kosnik <bkoz@redhat.com>
|
||||||
|
|
||||||
* acinclude.m4 (gxx_include_dir): Quote, fix regression.
|
* acinclude.m4 (gxx_include_dir): Quote, fix regression.
|
||||||
|
|
|
||||||
|
|
@ -240,12 +240,12 @@ namespace std {
|
||||||
template<class _Traits>
|
template<class _Traits>
|
||||||
basic_istream<char, _Traits>&
|
basic_istream<char, _Traits>&
|
||||||
operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
|
operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
|
||||||
{ return (__in >> static_cast<char>(__c)); }
|
{ return (__in >> reinterpret_cast<char&>(__c)); }
|
||||||
|
|
||||||
template<class _Traits>
|
template<class _Traits>
|
||||||
basic_istream<char, _Traits>&
|
basic_istream<char, _Traits>&
|
||||||
operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
|
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>
|
template<typename _CharT, typename _Traits>
|
||||||
basic_istream<_CharT, _Traits>&
|
basic_istream<_CharT, _Traits>&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue