Commit 59cde1ad authored by Jamie Seward's avatar Jamie Seward

Fix for _HAS_CXX17 == 0

Copied from solution to https://github.com/nlohmann/json/issues/464
parent 1a666799
...@@ -110,7 +110,7 @@ SOFTWARE. ...@@ -110,7 +110,7 @@ SOFTWARE.
#endif #endif
// string_view support // string_view support
#if defined(_MSC_VER) && defined(_HAS_CXX17) #if defined(_MSC_VER) && defined(_HAS_CXX17) && _HAS_CXX17 == 1
#define JSON_USE_STRING_VIEW #define JSON_USE_STRING_VIEW
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment