Skip to content

Commit

Permalink
Merge pull request #1639 from taylorhoward92/develop
Browse files Browse the repository at this point in the history
Add explicit conversion from json to std::string_view in conversion unit test
  • Loading branch information
nlohmann authored Jun 22, 2019
2 parents 4fc98e0 + 2f389cd commit 13d4f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/src/unit-conversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string_view>();
CHECK(json(s) == j);
}
#endif
Expand Down

0 comments on commit 13d4f8f

Please sign in to comment.