locale_facets.tcc (num_get<>::_M_extract_float): Evaluate *__beg the exact strict...
authorPaolo Carlini <pcarlini@suse.de>
Mon, 1 Nov 2004 11:31:44 +0000 (11:31 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 1 Nov 2004 11:31:44 +0000 (11:31 +0000)
commit8dc5fa3267a492582a1ee58dda67bd1fa9b7df27
treef8e2e7a14464efa41bc96181f14aa487250b853c
parentc4f731746a858af919e7fb3b70b5b40c92ef0964
locale_facets.tcc (num_get<>::_M_extract_float): Evaluate *__beg the exact strict minimum number of times...

2004-11-01  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (num_get<>::_M_extract_float):
Evaluate *__beg the exact strict minimum number of times; likewise
for __beg != __end; in the main parsing loop, call ++__beg in two
places only. The former is also a correctness issue, because,
according to the standard (22.2.2.1.2, Stage 2), 'in' shall be
dereferenced only one time for each increment.

From-SVN: r89940
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc