diff --git a/tests/src/unit-json_view.cpp b/tests/src/unit-json_view.cpp index ee7a8da57..65180ef55 100644 --- a/tests/src/unit-json_view.cpp +++ b/tests/src/unit-json_view.cpp @@ -1590,7 +1590,7 @@ TEST_CASE("json_view values") CHECK_THROWS_WITH_AS(not_an_object.root().get(), json_view_test::message("type_error.302", "", 0, 5, "type must be object, but is array").c_str(), json::type_error&); #if !defined(JSON_NOEXCEPTION) // (and one that cannot allocate its nodes) - using failing_map = std::map, failing_allocator>>; + using failing_map = std::map, failing_allocator>>; // NOLINT(modernize-use-transparent-functors) const json_document one_member = json_document::parse(R"({"a":1})"); CHECK_THROWS_AS(one_member.root().get(), std::bad_alloc&); #endif