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:
Claude committed 2026-11-06 22:34:36 +00:00
1 parent 788b12213b
commit f279c9aa49
1 file changed
+1 -1
+1 -1
View File
@@ -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;