Commit 6433ed2a authored by Max Limper's avatar Max Limper

gcc 4.7 compile fix

parent 3a072607
Pipeline #2769 passed with stage
in 24 minutes and 44 seconds
......@@ -366,8 +366,8 @@ class VectorT {
template<typename OtherScalar>
auto operator% (const VectorT<OtherScalar, DIM> &_rhs) const ->
typename std::enable_if<DIM == 3,
VectorT<decltype(this->values_[0] * _rhs[0] -
this->values_[0] * _rhs[0]),
VectorT<decltype((*this)[0] * _rhs[0] -
(*this)[0] * _rhs[0]),
DIM>>::type {
return {
values_[1] * _rhs[2] - values_[2] * _rhs[1],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment