Disabled implicit conversion to string_view on MSVC 15.13 and older
This commit is contained in:
parent
aaee18ce90
commit
714c592680
3 changed files with 12 additions and 12 deletions
|
@ -39,6 +39,13 @@ using nlohmann::json;
|
|||
#include <unordered_set>
|
||||
#include <valarray>
|
||||
|
||||
#if (defined(__cplusplus) && __cplusplus >= 201703L) || (defined(_HAS_CXX17) && _HAS_CXX17 == 1) // fix for issue #464
|
||||
#define JSON_HAS_CPP_17
|
||||
#define JSON_HAS_CPP_14
|
||||
#elif (defined(__cplusplus) && __cplusplus >= 201402L) || (defined(_HAS_CXX14) && _HAS_CXX14 == 1)
|
||||
#define JSON_HAS_CPP_14
|
||||
#endif
|
||||
|
||||
#if defined(JSON_HAS_CPP_17)
|
||||
#include <string_view>
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue