mirror of
https://github.com/nlohmann/json.git
synced 2026-02-09 11:42:51 +00:00
Added explicit converstion to std::string_view. Fixes failing test with GCC 8.3
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user