diff --git a/src/library/jsonincpp/parser.h b/src/library/jsonincpp/parser.h index f45cd9c..9f48e6e 100644 --- a/src/library/jsonincpp/parser.h +++ b/src/library/jsonincpp/parser.h @@ -11,9 +11,7 @@ namespace json { constexpr int endOfFile = 999999; struct bad_syntax: public std::exception { - inline bad_syntax() { - assert(false); - } + bad_syntax() = default; }; struct ParserContext { diff --git a/src/tests/test0.cpp b/src/tests/test0.cpp index 122a45a..2a307f5 100644 --- a/src/tests/test0.cpp +++ b/src/tests/test0.cpp @@ -55,7 +55,6 @@ int main(){ B[0].asInteger(); B[1].asString(); test(A, B, true); - return 0; test_obvious(parse_str_flawless("{ \"aaa\": true, \"2\":[true]}")); test_obvious(parse_str_flawless("{ \"aa\": true, \"tttt\": [true, false]}")); test_obvious(parse_str_flawless("[[[]]]"));