Skip to content

Throw when reading error #1

@imtrobin

Description

@imtrobin

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions