"Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes: | On Wed, May 01, 2002 at 07:01:49PM +0200, Lars Gullik Bjønnes wrote: >> [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: >> >> | Dekel Tsur <[EMAIL PROTECTED]> writes: >> > >> | | The bug was due to a bug in lyxstring (operator <<) >> | | The problem was that the code did not skip the whitespace before the first >> | | non whitespace char. >> | | Attached are two possible fixes: >> | | The first one was copied from g++-2/std/bastring.cc >> | | (I don't know what side-effects is.ipfx0 has). >> > >> | except that it does not exist in a standard stream? >> > >> | Also I am not sure that your change is according to the standard. >> > >> | | The second one does the whitespace skipping manually. >> >> Can you sheck if this is possible to use with lyxstring: >> (it probably require a istream that is pretty standard conforming) > | g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../.. -I../.. -I../../boost -i | system /usr/X11R6/include -g -W -Wall -c lyxstring.C -Wp,-MD,.deps/lyxstring.TPl | o | lyxstring.C: In function `class istream & operator >>(istream &, lyxstring &)': | lyxstring.C:1738: ANSI C++ forbids declaration `int_type' with no type | lyxstring.C:1738: typedef name may not be class-qualified | lyxstring.C:1738: parse error before `;' | lyxstring.C:1739: ANSI C++ forbids declaration `__streambuf_type' with no type | lyxstring.C:1739: typedef name may not be class-qualified | lyxstring.C:1739: parse error before `;' | lyxstring.C:1740: ANSI C++ forbids declaration `__ctype_type' with no type | lyxstring.C:1740: typedef name may not be class-qualified | lyxstring.C:1740: parse error before `;' | lyxstring.C:1745: `sentry' is not a member of type `istream' | lyxstring.C:1745: parse error before `(' | lyxstring.C:1746: `cerb' undeclared (first use this function) | lyxstring.C:1746: (Each undeclared identifier is reported only once | lyxstring.C:1746: for each function it appears in.) | lyxstring.C:1752: `ctype_type' undeclared (first use this function) | lyxstring.C:1752: parse error before `const' | lyxstring.C:1753: `int_type' undeclared (first use this function) | lyxstring.C:1754: `streambuf_type' undeclared (first use this function) | lyxstring.C:1754: `sb' undeclared (first use this function) | lyxstring.C:1755: parse error before `=' | lyxstring.C:1758: `c' undeclared (first use this function) | lyxstring.C:1758: `eof' undeclared (first use this function) | lyxstring.C:1758: `ctype' undeclared (first use this function) | lyxstring.C:1758: `ctype_base' undeclared (first use this function) | lyxstring.C:1758: parse error before `::' | lyxstring.C:1764: `ios_base' undeclared (first use this function) | lyxstring.C:1764: parse error before `::' | lyxstring.C:1766: confused by earlier errors, bailing out
All this because of substandard compiler and library... What complier are you using? The oldest compiler I can test with is gcc 2.96 (in progress) -- Lgb