diff --git a/sycl/include/sycl/vector.hpp b/sycl/include/sycl/vector.hpp index 0e3d5d07f922..766d0d30b9f4 100644 --- a/sycl/include/sycl/vector.hpp +++ b/sycl/include/sycl/vector.hpp @@ -625,12 +625,12 @@ class SwizzleOp : public detail::NamedSwizzlesMixinBoth< OperationCurrentT_, Idx_...>; template - using EnableIfOneIndex = typename std::enable_if_t< - 1 == IdxNum && SwizzleOp::size() == IdxNum, T>; + using EnableIfOneIndex = + typename std::enable_if_t<1 == IdxNum && SwizzleOp::size() == IdxNum, T>; template - using EnableIfMultipleIndexes = typename std::enable_if_t< - 1 != IdxNum && SwizzleOp::size() == IdxNum, T>; + using EnableIfMultipleIndexes = + typename std::enable_if_t<1 != IdxNum && SwizzleOp::size() == IdxNum, T>; template using EnableIfScalarType = @@ -870,8 +870,7 @@ class SwizzleOp : public detail::NamedSwizzlesMixinBoth< __SYCL_RELLOGOP(||, (!detail::is_byte_v && !detail::is_vgenfloat_v)) #undef __SYCL_RELLOGOP - template > + template > SwizzleOp &operator=(const vec &Rhs) { std::array Idxs{Indexes...}; for (size_t I = 0; I < Idxs.size(); ++I) { @@ -887,8 +886,7 @@ class SwizzleOp : public detail::NamedSwizzlesMixinBoth< return *this; } - template = true> + template = true> SwizzleOp &operator=(const DataT &Rhs) { std::array Idxs{Indexes...}; for (auto Idx : Idxs) { @@ -1046,10 +1044,9 @@ class SwizzleOp : public detail::NamedSwizzlesMixinBoth< return NewLHOp(m_Vector, *this, Rhs); } - template < - typename T1, typename T2, typename T3, template class T4, - int... T5, - typename = typename std::enable_if_t> + template class T4, + int... T5, + typename = typename std::enable_if_t> SwizzleOp &operator=(const SwizzleOp &Rhs) { std::array Idxs{Indexes...}; for (size_t I = 0; I < Idxs.size(); ++I) { @@ -1058,10 +1055,9 @@ class SwizzleOp : public detail::NamedSwizzlesMixinBoth< return *this; } - template < - typename T1, typename T2, typename T3, template class T4, - int... T5, - typename = typename std::enable_if_t> + template class T4, + int... T5, + typename = typename std::enable_if_t> SwizzleOp &operator=(SwizzleOp &&Rhs) { std::array Idxs{Indexes...}; for (size_t I = 0; I < Idxs.size(); ++I) {