Add missing return derived() in ArrayBase::operator=

This commit is contained in:
Gael Guennebaud 2014-09-28 09:16:13 +02:00
parent ce2035af86
commit 74cde0c925

View File

@ -121,6 +121,7 @@ template<typename Derived> class ArrayBase
Derived& operator=(const ArrayBase& other) Derived& operator=(const ArrayBase& other)
{ {
internal::call_assignment(derived(), other.derived()); internal::call_assignment(derived(), other.derived());
return derived();
} }
/** Set all the entries to \a value. /** Set all the entries to \a value.