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:
commit
13d4f8f5ad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue