Merge pull request #1639 from taylorhoward92/develop

Add explicit conversion from json to std::string_view in conversion unit test
This commit is contained in:
Niels Lohmann 2019-06-22 09:25:02 +02:00 committed by GitHub
commit 13d4f8f5ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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