bug in istringstream::str(string)

Gerd v. Egidy egidy@deam.de
Sat Apr 1 00:00:00 GMT 2000


Hi,

> [...]
> > cerr << b << "\n";   // output is 1073784336 (or some other strange
value)
>
> "is.clear();" before the second "is.str(...)" might help.

Thanks, that works.

I don't have the final version of the ANSI C++ Standard. Can you tell me if
it is mandatory to call clear before setting a new source-string or is it a
workaround for a bug in libstdc++?

Regards,

Gerd




More information about the Libstdc++ mailing list