@@ -182,7 +182,8 @@ VECTOR_ENABLE_IF_LT_N(i, value_type &) name() { return _data[i]; }
template <typename M>
VECTOR_ENABLE_IF_EQ_T(mul_t<M>, T, N)& operator*=(vector<M, N> c) {
- return vector<mul_t<M>, N>{*this} *= c;
+ VECTOR_FOR_EACH(i) { _data[i] *= c[i]; }
+ return *this;
}