basic_ios.tcc (basic_ios::narrow): Add default value.
2002-02-07 Benjamin Kosnik <bkoz@redhat.com> Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de> * include/bits/basic_ios.tcc (basic_ios::narrow): Add default value. (basic_ios::widen): Same. Co-Authored-By: Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de> From-SVN: r49590
This commit is contained in:
parent
d5614afb57
commit
3ab57fab23
@ -1,3 +1,9 @@
|
||||
2002-02-07 Benjamin Kosnik <bkoz@redhat.com>
|
||||
Wolfgang Bangerth <wolfgang.bangerth@iwr.uni-heidelberg.de>
|
||||
|
||||
* include/bits/basic_ios.tcc (basic_ios::narrow): Add default value.
|
||||
(basic_ios::widen): Same.
|
||||
|
||||
2002-02-07 Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
* testsuite/22_locale/money_get_members_char.cc:
|
||||
|
@ -92,7 +92,7 @@ namespace std
|
||||
char
|
||||
basic_ios<_CharT, _Traits>::narrow(char_type __c, char __dfault) const
|
||||
{
|
||||
char __ret;
|
||||
char __ret = __dfault;
|
||||
if (_M_check_facet(_M_ios_fctype))
|
||||
__ret = _M_ios_fctype->narrow(__c, __dfault);
|
||||
return __ret;
|
||||
@ -102,7 +102,7 @@ namespace std
|
||||
_CharT
|
||||
basic_ios<_CharT, _Traits>::widen(char __c) const
|
||||
{
|
||||
char_type __ret;
|
||||
char_type __ret = char_type();
|
||||
if (_M_check_facet(_M_ios_fctype))
|
||||
__ret = _M_ios_fctype->widen(__c);
|
||||
return __ret;
|
||||
|
Loading…
Reference in New Issue
Block a user