From 1b42fed4d7518b2ee5534f5545c5176bc2f73c92 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Mon, 3 Feb 2020 23:50:07 -0500 Subject: [PATCH] Detect clang-cl --- include/boost/static_string/config.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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