Skip to content

Commit 90fe444

Browse files
jicksawparoj
authored andcommitted
Handle input without ws & fail on empty stream
1 parent b8dc458 commit 90fe444

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

framework/Mesh.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,14 @@ namespace Framework
9191
inStream.seekg(0, std::ios_base::beg);\
9292
inStream >> std::skipws;\
9393
\
94-
while(!inStream.eof() && inStream.good())\
94+
while(inStream.good())\
9595
{\
9696
AttribData theValue;\
97-
inStream >> theValue.attribDataValue >> std::ws;\
97+
inStream >> theValue.attribDataValue;\
9898
if(inStream.fail())\
9999
throw std::runtime_error("Parse error in array data stream.");\
100100
outputData.push_back(theValue);\
101+
inStream >> std::ws;\
101102
}\
102103
}\
103104

0 commit comments

Comments
 (0)