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:
Benjamin Kosnik 2002-02-07 20:28:55 +00:00 committed by Benjamin Kosnik
parent d5614afb57
commit 3ab57fab23
2 changed files with 8 additions and 2 deletions

View File

@ -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:

View File

@ -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;