bug #1231: fix compilation regression regarding complex_array/=real_array and add respective unit tests

This commit is contained in:
Gael Guennebaud
2016-05-18 23:00:13 +02:00
parent 21d692d054
commit 84df9142e7
3 changed files with 22 additions and 10 deletions

View File

@@ -217,7 +217,7 @@ template<typename OtherDerived>
EIGEN_STRONG_INLINE Derived &
ArrayBase<Derived>::operator/=(const ArrayBase<OtherDerived>& other)
{
call_assignment(derived(), other.derived(), internal::div_assign_op<Scalar>());
call_assignment(derived(), other.derived(), internal::div_assign_op<Scalar,typename OtherDerived::Scalar>());
return derived();
}