This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug in istringstream::str(string)


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]