diff --git a/src/json.hpp b/src/json.hpp index 98659054..bdbd351b 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -3729,6 +3729,9 @@ class basic_json not std::is_same::value #ifndef _MSC_VER // fix for issue #167 operator<< ambiguity under VS2015 and not std::is_same>::value +#endif +#if defined(_MSC_VER) && defined(_HAS_CXX17) // fix for issue #464 + and not std::is_same::value #endif , int >::type = 0 > operator ValueType() const diff --git a/src/json.hpp.re2c b/src/json.hpp.re2c index 5e90f611..6710233c 100644 --- a/src/json.hpp.re2c +++ b/src/json.hpp.re2c @@ -3729,6 +3729,9 @@ class basic_json not std::is_same::value #ifndef _MSC_VER // fix for issue #167 operator<< ambiguity under VS2015 and not std::is_same>::value +#endif +#if defined(_MSC_VER) && defined(_HAS_CXX17) // fix for issue #464 + and not std::is_same::value #endif , int >::type = 0 > operator ValueType() const