This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: num_get<>::_M_extract
- To: Benjamin Kosnik <bkoz@cygnus.com>
- Subject: Re: num_get<>::_M_extract
- From: Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de>
- Date: Thu, 6 May 1999 13:13:11 +0200 (CEST)
- cc: libstdc++@sourceware.cygnus.com
- Reply-To: kabatek@chemie.uni-halle.de
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