locale_facets.tcc (money_get::do_get(..., long double&): Properly size the temporary...
authorPaolo Carlini <pcarlini@suse.de>
Fri, 24 Oct 2003 22:51:15 +0000 (22:51 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 24 Oct 2003 22:51:15 +0000 (22:51 +0000)
commit761faeec3146cedf22989e688c8e5d43e23a2c74
tree823122ab2d102de228ac9319c5347dd66d069abe
parent7bb1ad9314f7e671cf8c4b69da55dc0afe7cba01
locale_facets.tcc (money_get::do_get(..., long double&): Properly size the temporary buffer.

2003-10-24  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (money_get::do_get(...,
long double&): Properly size the temporary buffer.
* testsuite/22_locale/money_get/get/char/11.cc: New.
* testsuite/22_locale/money_get/get/wchar_t/11.cc: Ditto.

* include/bits/locale_facets.tcc (num_put::_M_group_int,
num_put::_M_group_float, money_put::do_put(..., const
string_type&), collate::do_compare, collate::do_transform):
Prefer basic_string::data() to c_str() when the '\0'
terminator is not really needed.

From-SVN: r72911
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/22_locale/money_get/get/char/11.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/11.cc [new file with mode: 0644]