💚 fix build

pull/2562/head
Niels Lohmann 2021-01-17 16:51:14 +01:00
parent 65107f7c9d
commit 5ec0980514
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
1 changed files with 1 additions and 1 deletions

View File

@ -81,6 +81,6 @@ TEST_CASE("Better diagnostics")
json j;
j["a/b"]["m~n"] = 1;
std::string s;
CHECK_THROWS_WITH_AS(s = j["a/b"]["m~n"], "[json.exception.type_error.302] (/a~1b/m~0n) type must be string, but is number", json::type_error);
CHECK_THROWS_WITH_AS(s = j["a/b"]["m~n"].get<std::string>(), "[json.exception.type_error.302] (/a~1b/m~0n) type must be string, but is number", json::type_error);
}
}