File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ BOOST_TEST_FOR_EACH_CONST_OP( DEFINE_CONST_OPER )
222222
223223template <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, \
You can’t perform that action at this time.
0 commit comments