Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

std::istream::operator>>( int& ) broken with 5.8 stlport4?

807575Nov 21 2005 — edited Nov 29 2005
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).
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2005
Added on Nov 21 2005
3 comments
169 views