File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ BINOP(ShiftLeft , <<) \
161161BINOP (ShiftRight , >>) \
162162UOP (std::negate<void > , -) \
163163UOP (std::logical_not<void > , !) \
164- /* UOP(std::bit_not<void> , ~) */ \
164+ UOP (std::bit_not<void > , ~) \
165165UOP (UnaryPlus , +) \
166166OPASSIGN (std::plus<void > , +=) \
167167OPASSIGN (std::minus<void > , -=) \
@@ -333,7 +333,10 @@ template <typename Self> struct VecOperators {
333333
334334#define __SYCL_VEC_UOP_MIXIN (OP, OPERATOR ) \
335335 template <typename Op> \
336- struct OpMixin <Op, std::enable_if_t <std::is_same_v<Op, OP>>> { \
336+ struct OpMixin < \
337+ Op, std::enable_if_t <std::is_same_v<Op, OP> && /* bit_not is handled \
338+ separately below */ \
339+ !std::is_same_v<Op, std::bit_not<void >>>> { \
337340 friend auto operator OPERATOR (const Self &v) { return apply<OP>(v); } \
338341 };
339342
You can’t perform that action at this time.
0 commit comments