You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see you throw a runtime exception when there is a reading error. That might not be so desirable. Is there a way better way to check the stream status after deserializaing.
e.g
float x,y,z;
in >> x >> y >> z;
if ( ! in)
// stream is in invalid state
The text was updated successfully, but these errors were encountered:
I see you throw a runtime exception when there is a reading error. That might not be so desirable. Is there a way better way to check the stream status after deserializaing.
e.g
float x,y,z;
in >> x >> y >> z;
if ( ! in)
// stream is in invalid state
The text was updated successfully, but these errors were encountered: