]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/include/bits/locale_facets.tcc
re PR libstdc++/21238 (conflicting "typedef __numpunct_cache<_CharT> __cache_type...
authorPaolo Carlini <pcarlini@suse.de>
Fri, 29 Apr 2005 18:50:00 +0000 (18:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 29 Apr 2005 18:50:00 +0000 (18:50 +0000)
commita70c902e06cb7fd86e5f7f7524cd7e4200cba0db
tree46a68024b46ac9b5e42fe36270112667cbeeb1dc
parentb61ae8b2611643a3f7005680573e4f13dcf9ef23
re PR libstdc++/21238 (conflicting "typedef __numpunct_cache<_CharT>    __cache_type;" in std::numpunct<CharT> makes specialization impossible)

2005-04-29  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/21238
* include/bits/locale_facets.tcc (num_get::_M_extract_float,
num_get::_M_extract_int, num_get::do_get(bool&),
num_put::_M_insert_int, num_put::_M_insert_float,
num_put::do_put(bool), money_get::_M_extract,
money_put::_M_insert): Adjust the __cache_type typedef not to
forward to a numpunct/moneypunct typedef.
* testsuite/testsuite_character.h: Add pod_uint and its numpunct
and moneypunct specializations.
* testsuite/testsuite_character.cc: Add numpunct<pod_uint>::id
and moneypunct<pod_uint>::id.
* testsuite/22_locale/num_get/3.cc: New.
* testsuite/22_locale/num_put/3.cc: Likewise.
* testsuite/22_locale/money_get/3.cc: Likewise.
* testsuite/22_locale/money_put/3.cc: Likewise.

* include/bits/locale_facets.tcc (money_put::_M_insert,
time_get::_M_extract_name): Prefer operator== to operator!=
on char_types.

From-SVN: r99012
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/22_locale/money_get/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/money_put/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_get/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/num_put/3.cc [new file with mode: 0644]
libstdc++-v3/testsuite/testsuite_character.cc
libstdc++-v3/testsuite/testsuite_character.h