diff --git a/tests/src/unit-user_defined_input.cpp b/tests/src/unit-user_defined_input.cpp index 0884b193d..cb93439e5 100644 --- a/tests/src/unit-user_defined_input.cpp +++ b/tests/src/unit-user_defined_input.cpp @@ -184,7 +184,7 @@ struct CustomSentinel TEST_CASE("Parse with heterogeneous iterator and sentinel types") { - std::string json_str = R"({"key":"value"})"; + const std::string json_str = R"({"key":"value"})"; const char* end_ptr = json_str.data() + json_str.size(); // Parse using pointer and sentinel (different types)