This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: num_get<>::do_get patch (fixed version)
- To: Benjamin Kosnik <bkoz@cygnus.com>
- Subject: Re: num_get<>::do_get patch (fixed version)
- From: Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de>
- Date: Mon, 26 Apr 1999 11:24:20 +0200 (CEST)
- cc: libstdc++@sourceware.cygnus.com
- Reply-To: kabatek@chemie.uni-halle.de
On Fri, 23 Apr 1999, Benjamin Kosnik wrote:
> You need to do an initialization for the string literal, not an
> assignment.
>
> const char __conv[] = "%ho";
I am afraid it would not work because there are some cases (hex, oct, ...).
A solution could be:
...
static const char __oct[] = "%ho";
static const char __hex[] = "%hX";
static const char __bf0[] = "%hi";
static const char __def[] = "%hd";
const char* __conv = __def;
if (__basefield == ios_base::oct)
__conv = __oct;
...
Or perhaps without static?
>
> should work. Also, can you please re-send your patch, and base your diffs
> on the CVS sources? I could not apply your last patch.
>
? My patch was based on the recent CVS source.
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