Include <string_view> in "nlohmann/json.hpp" when C++17 is used

This commit is contained in:
Alexander Karzhenkov
2020-12-20 19:40:36 +05:00
parent 39b8d6bd33
commit cd7acc1dc5
3 changed files with 8 additions and 4 deletions

View File

@@ -48,10 +48,6 @@ using nlohmann::json;
#define JSON_HAS_CPP_14
#endif
#if defined(JSON_HAS_CPP_17)
#include <string_view>
#endif
TEST_CASE("value conversion")
{
SECTION("get an object (explicit)")