Skip to content

Commit 8320e94

Browse files
committed
Apply same workaround to clangs 6 through 10
1 parent be5918d commit 8320e94

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/boost/test/tools/assertion.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ BOOST_TEST_FOR_EACH_CONST_OP( DEFINE_CONST_OPER )
222222

223223
template<typename Lhs, typename Rhs, typename OP> class binary_expr;
224224

225-
#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 10) && \
225+
#if ((defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 10)) || (defined(__clang__) && __clang_major__ < 11)) && \
226226
(__cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L))
227227

228228
// Primary template - empty (for non-optional types)
@@ -311,7 +311,7 @@ class expression_base : public optional_friends_base<ExprType, ValType> {
311311
// GCC < 10 workaround: comparison operators with SFINAE to exclude std::optional
312312
// when ValType is also std::optional. The hidden friend operators in the base class
313313
// optional_friends_base will handle the optional==optional case instead.
314-
#if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 10) && \
314+
#if ((defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 10)) || (defined(__clang__) && __clang_major__ < 11)) && \
315315
(__cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L))
316316
#define ADD_OP_SUPPORT_COMP( oper, name, _, _i ) \
317317
template<typename T, \

0 commit comments

Comments
 (0)