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
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