Skip to content
Snippets Groups Projects
Commit 4c5e63a8 authored by Vasileios Karakasis's avatar Vasileios Karakasis
Browse files

Added forgotten parentheses.

parent 7a11d761
No related merge requests found
......@@ -86,9 +86,10 @@ bool starts_with(const std::string &str, const std::string &prefix)
void check_parse_status(const std::istream &is)
{
if (is.fail())
if (is.fail()) {
// If we try to read past the eof; fail bit will also be set
throw swc_parse_error("could not parse value");
}
}
template<typename T>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment