diff --git a/include/boost/static_string/config.hpp b/include/boost/static_string/config.hpp index 4bff185..848b034 100644 --- a/include/boost/static_string/config.hpp +++ b/include/boost/static_string/config.hpp @@ -172,8 +172,9 @@ defined(__clang__) && \ // that cannot use the library comparison function // objects at all in constant expresssions. In these // cases, we use whatever will make more constexpr work. -#if defined(__clang__) && defined(__GLIBCXX__) && \ -(__GLIBCXX__ >= 20180726L && __GLIBCXX__ <= 20190812L) +#if defined(__clang__) && \ +((defined(__GLIBCXX__) &&__GLIBCXX__ >= 20180726L \ +&& __GLIBCXX__ <= 20190812L) || defined(_MSC_VER)) #define BOOST_STATIC_STRING_NO_PTR_COMP_FUNCTIONS #endif