locale_facets.tcc (money_get::do_get(string)): First construct a tentative returned...
authorPaolo Carlini <pcarlini@unitus.it>
Tue, 5 Feb 2002 11:35:48 +0000 (12:35 +0100)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 5 Feb 2002 11:35:48 +0000 (11:35 +0000)
commite07554eb1747af7a6fd6479ee38db3a04aa08e2d
treedc15baef8496d5588c6b2c353f1b467628ccaa0f
parent4505024e9e20966e5cf59625bdf15467701d7732
locale_facets.tcc (money_get::do_get(string)): First construct a tentative returned string...

2002-02-05  Paolo Carlini  <pcarlini@unitus.it>

* include/bits/locale_facets.tcc (money_get::do_get(string)):
First construct a tentative returned string, then, only if the
parsing succeeds, copy it into the string passed by reference.
* testsuite/22_locale/money_get_members_char.cc: Add test06.
* testsuite/22_locale/money_get_members_wchar_t.cc: Add test06.

From-SVN: r49523
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/22_locale/money_get_members_char.cc
libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc