num_get<>::_M_extract
Ryszard Kabatek
rysio@rumcajs.chemie.uni-halle.de
Tue Jun 1 12:43:00 GMT 1999
On Wed, 5 May 1999, Benjamin Kosnik wrote:
> > 1. At the line 258 of bits/locfacets.tcc you wrote:
> > // XXX Need to deal with discarding leading zeros for non-octal numbers!
> >
> > The strto* functions do it.
> > I am not sure if it is a (C) standard behaviour, but I assume it is.
>
> Truncation should happen in _M_extract, before the strto* functions are
> called. If you do this, please add test cases to
> 27/istrinstream_formatted.cc, and make sure to test for octal and boolean
> values.
>
If the strto* functions ignore the leading zeroes,
why should we do it in _M_extract too?
Ryszard Kabatek
Martin-Luther University Halle-Wittenberg, Department of Physical Chemistry
Geusaer Str. 88, 06217 Merseburg, Germany
Tel. +49 3461 46 2487 Fax. +49 3461 46 2129
More information about the Libstdc++
mailing list