This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project. See the libstdc++ home page for more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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