This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: num_get<>::_M_extract


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]