there seems to be some issue with this function under CC 5.8:
with the rogue wave stl:
cat stest.C
#include <sstream>
#include <iostream>
int main() {
std::istringstream strm("11327 64486");
int a, b;
strm >> a >> b;
std::cout << "a = " << a << ", b = " << b << '\n';
}
CC stest.C -o stest
./stest
a = 11327, b = 64486
with stlport:
CC -library=stlport4 stest.C -o stest
"/opt/SUNWspro/prod/include/CC/stlport4/stl/_istream.h", line 118: Warning: The variable __lval has not yet been assigned a value.
1 Warning(s) detected.
./stest
a = 2147483647, b = 2147483647
CC -V
CC: Sun C++ 5.8 2005/10/13
the same problems occurs using other types of istream (e.g. with std::cin).