Added explicit converstion to std::string_view. Fixes failing test with GCC 8.3

This commit is contained in:
Taylor Howard 2019-06-16 14:49:01 +10:00
parent 4fc98e0b34
commit 2f389cdde7

View file

@ -613,7 +613,7 @@ TEST_CASE("value conversion")
#if defined(JSON_HAS_CPP_17) #if defined(JSON_HAS_CPP_17)
SECTION("std::string_view") SECTION("std::string_view")
{ {
std::string_view s = j; std::string_view s = j.get<std::string_view>();
CHECK(json(s) == j); CHECK(json(s) == j);
} }
#endif #endif