From 2f389cdde72ccb978644e6ce48629981139d6495 Mon Sep 17 00:00:00 2001 From: Taylor Howard Date: Sun, 16 Jun 2019 14:49:01 +1000 Subject: [PATCH] Added explicit converstion to std::string_view. Fixes failing test with GCC 8.3 --- test/src/unit-conversions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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