mirror of
https://github.com/nlohmann/json.git
synced 2026-11-07 04:59:21 +00:00
Tests: mark parser callback in unit-contiguous_parser noexcept
Fixes the -Werror=noexcept failure with GCC 26 (ci_test_standards_gcc (26)). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N5NasEsrzHhSNouxSoEwqz
This commit is contained in:
1 file changed
+1
-1
@@ -553,7 +553,7 @@ TEST_CASE("contiguous parser")
|
|||||||
CHECK(json::accept("[1,]", false, true));
|
CHECK(json::accept("[1,]", false, true));
|
||||||
CHECK(json::accept("// c\n[1]", true));
|
CHECK(json::accept("// c\n[1]", true));
|
||||||
int calls = 0;
|
int calls = 0;
|
||||||
const json j = json::parse("[1,2]", [&calls](int /*depth*/, json::parse_event_t /*event*/, json& /*parsed*/)
|
const json j = json::parse("[1,2]", [&calls](int /*depth*/, json::parse_event_t /*event*/, json& /*parsed*/) noexcept
|
||||||
{
|
{
|
||||||
++calls;
|
++calls;
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in new issue
Block a user