1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-21 04:22:05 +03:00

🚨 fixed warnings

This commit is contained in:
Niels Lohmann
2018-01-30 23:57:49 +01:00
parent f7131715b1
commit 57e6fddd90
6 changed files with 16 additions and 16 deletions

View File

@ -60,7 +60,7 @@ TEST_CASE("JSON pointers")
{
json v = {1, 2, 3, 4};
json::json_pointer ptr("/10e");
CHECK_THROWS_AS(v[ptr], json::out_of_range);
CHECK_THROWS_AS(v[ptr], json::out_of_range&);
CHECK_THROWS_WITH(v[ptr],
"[json.exception.out_of_range.404] unresolved reference token '10e'");
}