This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: num_get<>::_M_extract
- To: kabatek@chemie.uni-halle.de
- Subject: Re: num_get<>::_M_extract
- From: Benjamin Kosnik <bkoz@cygnus.com>
- Date: Wed, 5 May 1999 11:45:34 -0700 (PDT)
- cc: libstdc++@sourceware.cygnus.com
> 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.
-Benjamin