Fix for _HAS_CXX17 == 0

Copied from solution to https://github.com/nlohmann/json/issues/464
This commit is contained in:
Jamie Seward 2017-10-21 16:29:37 -07:00
parent 1a66679929
commit 59cde1ad6e

View file

@ -110,7 +110,7 @@ SOFTWARE.
#endif
// 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
#endif