diff --git a/test/src/unit-conversions.cpp b/test/src/unit-conversions.cpp index 275d5270..fa75428c 100644 --- a/test/src/unit-conversions.cpp +++ b/test/src/unit-conversions.cpp @@ -613,7 +613,7 @@ TEST_CASE("value conversion") #if defined(JSON_HAS_CPP_17) SECTION("std::string_view") { - std::string_view s = j; + std::string_view s = j.get(); CHECK(json(s) == j); } #endif