1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-25 13:41:56 +03:00

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

@ -73,6 +73,10 @@ SOFTWARE.
#include <nlohmann/json_fwd.hpp>
#include <nlohmann/ordered_map.hpp>
#if defined(JSON_HAS_CPP_17)
#include <string_view>
#endif
/*!
@brief namespace for Niels Lohmann
@see https://github.com/nlohmann