Commit 1adb9d62 by Niels

fixed #156

parent ac4d4a0f
...@@ -6301,6 +6301,11 @@ class basic_json ...@@ -6301,6 +6301,11 @@ class basic_json
return "<parse error>"; return "<parse error>";
case token_type::end_of_input: case token_type::end_of_input:
return "<end of input>"; return "<end of input>";
default:
{
// catch non-enum values
return "unknown token"; // LCOV_EXCL_LINE
}
} }
} }
......
...@@ -6301,6 +6301,11 @@ class basic_json ...@@ -6301,6 +6301,11 @@ class basic_json
return "<parse error>"; return "<parse error>";
case token_type::end_of_input: case token_type::end_of_input:
return "<end of input>"; return "<end of input>";
default:
{
// catch non-enum values
return "unknown token"; // LCOV_EXCL_LINE
}
} }
} }
......
Markdown is supported
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