From 75160cd75509bde014760364517a777c45c6ed4e Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Fri, 16 Feb 2018 19:08:49 +0000 Subject: [PATCH] clang: we can't use the new operator detector code for clang < 3.2. --- include/boost/type_traits/detail/config.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/type_traits/detail/config.hpp b/include/boost/type_traits/detail/config.hpp index f8f3a99..2113c43 100644 --- a/include/boost/type_traits/detail/config.hpp +++ b/include/boost/type_traits/detail/config.hpp @@ -74,6 +74,10 @@ # define BOOST_TT_HAS_ACCURATE_BINARY_OPERATOR_DETECTION #endif +#if defined(__clang__) && (__clang_major__ == 3) && (__clang_minor__ < 2) && defined(BOOST_TT_HAS_ACCURATE_BINARY_OPERATOR_DETECTION) +#undef BOOST_TT_HAS_ACCURATE_BINARY_OPERATOR_DETECTION +#endif + #endif // BOOST_TT_CONFIG_HPP_INCLUDED