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 , <<) \
161
161
BINOP (ShiftRight , >>) \
162
162
UOP (std::negate<void > , -) \
163
163
UOP (std::logical_not<void > , !) \
164
- /* UOP(std::bit_not<void> , ~) */ \
164
+ UOP (std::bit_not<void > , ~) \
165
165
UOP (UnaryPlus , +) \
166
166
OPASSIGN (std::plus<void > , +=) \
167
167
OPASSIGN (std::minus<void > , -=) \
@@ -333,7 +333,10 @@ template <typename Self> struct VecOperators {
333
333
334
334
#define __SYCL_VEC_UOP_MIXIN (OP, OPERATOR ) \
335
335
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 >>>> { \
337
340
friend auto operator OPERATOR (const Self &v) { return apply<OP>(v); } \
338
341
};
339
342
You can’t perform that action at this time.
0 commit comments