Unverified Commit 13d4f8f5 by Niels Lohmann Committed by GitHub

Merge pull request #1639 from taylorhoward92/develop

Add explicit conversion from json to std::string_view in conversion unit test
parents 4fc98e0b 2f389cdd
...@@ -613,7 +613,7 @@ TEST_CASE("value conversion") ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment