From 7f8bc8a93a35001907d6967ef1df30289da9cda9 Mon Sep 17 00:00:00 2001 From: Andreev Gregory Date: Sun, 1 Sep 2024 17:13:20 +0300 Subject: [PATCH] Hoxtfix: very easy bug --- src/library/jsonincpp/parser.h | 4 +--- src/tests/test0.cpp | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) 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("[[[]]]"));