<sstream> bug?
CH Lin
ch.lin@prodigy.net
Mon Jul 10 18:59:00 GMT 2000
As a new member of this mailing list, please accept
my apology if my question is inappropriate or being asked somewhere else.ÃÂ
That said, consider the following program: #include
<iostream> #include <sstream> using namespace
std; int main() { ÃÂ istringstream iss("1 2 3 4 5"); ÃÂ
int i; ÃÂ while (iss >> i)ÃÂ cout << i <<
'\n'; } using g++ 2.95.2 and libstdc++-2.90.8, the above program
caused an infinite loop by repeating printing 5.ÃÂ Is it a known bug? If so,
is there any patch available?
ÃÂ
CH
More information about the Libstdc++
mailing list