[Bug libstdc++/38399] money_get<> read decimal point when frac_digits() <= 0
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Thu Dec 4 16:09:00 GMT 2008
------- Comment #2 from paolo dot carlini at oracle dot com 2008-12-04 16:08 -------
(In reply to comment #0)
> use_facet<money_get<char> >(loc).get(ss, 0, false, ss, err, digits);
>
> string rest(istreambuf_iterator<char>(ss), istreambuf_iterator<char>());
Fixing this issue is trivial, but please double check the above way of using
mony_get::get, which in general doesn't work with our implementation. Only the
iterator returned by get correctly points to the current char: constructing
after the get an istreambuf_iterator<char>(ss) doesn't work for that. So,
please double check carefully and in case open a separate PR.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38399
More information about the Gcc-bugs
mailing list