mirror of git://gcc.gnu.org/git/gcc.git
locale_facets.tcc (money_get<>::_M_extract): Fix thinkos in the switch from string_type& to string& as last argument.
2004-03-01 Paolo Carlini <pcarlini@suse.de> * include/bits/locale_facets.tcc (money_get<>::_M_extract): Fix thinkos in the switch from string_type& to string& as last argument. From-SVN: r78707
This commit is contained in:
parent
8f8cdf339c
commit
b19fb27d1e
|
|
@ -1,3 +1,9 @@
|
||||||
|
2004-03-01 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
|
* include/bits/locale_facets.tcc (money_get<>::_M_extract):
|
||||||
|
Fix thinkos in the switch from string_type& to string& as last
|
||||||
|
argument.
|
||||||
|
|
||||||
2004-03-01 Paolo Carlini <pcarlini@suse.de>
|
2004-03-01 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
|
* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
|
||||||
|
|
|
||||||
|
|
@ -1338,15 +1338,15 @@ namespace std
|
||||||
// Strip leading zeros.
|
// Strip leading zeros.
|
||||||
if (__res.size() > 1)
|
if (__res.size() > 1)
|
||||||
{
|
{
|
||||||
size_type __first = __res.find_first_not_of(__lit[_S_zero]);
|
const size_type __first = __res.find_first_not_of('0');
|
||||||
const bool __only_zeros = __first == string_type::npos;
|
const bool __only_zeros = __first == string_type::npos;
|
||||||
if (__first)
|
if (__first)
|
||||||
__res.erase(0, __only_zeros ? __res.size() - 1 : __first);
|
__res.erase(0, __only_zeros ? __res.size() - 1 : __first);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 22.2.6.1.2, p4
|
// 22.2.6.1.2, p4
|
||||||
if (__negative && __res[0] != __lit[_S_zero])
|
if (__negative && __res[0] != '0')
|
||||||
__res.insert(__res.begin(), __lit[_S_minus]);
|
__res.insert(__res.begin(), '-');
|
||||||
|
|
||||||
// Test for grouping fidelity.
|
// Test for grouping fidelity.
|
||||||
if (__grouping_tmp.size())
|
if (__grouping_tmp.size())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue