Original Post
So I''m using std::stringstream in a templated class. I was wondering... If my stringstream contains a string like "hello", and I try to do mystring >> integer variable, what happens.
I already know it wont work, and that it wont crash, but does the stringstream object set some sort of error value somewhere to indicate that the output failed, or is the only option to compare the integer with its original value to see if it changed?
Looking for a serious game project?
www.xgameproject.com
Looking for a serious game project?
www.xgameproject.com