Workaround for compounds affected by #94.

This commit is contained in:
Hauke Heibel 2010-02-15 10:11:10 +01:00
parent b18f737aa1
commit 8519558d11

View File

@ -61,8 +61,7 @@ template<typename Derived> struct AnyMatrixBase
{
// This is the default implementation,
// derived class can reimplement it in a more optimized way.
typename Dest::PlainMatrixType res(rows(),cols());
evalTo(res);
typename Dest::PlainMatrixType res(*this);
dst += res;
}
@ -71,8 +70,7 @@ template<typename Derived> struct AnyMatrixBase
{
// This is the default implementation,
// derived class can reimplement it in a more optimized way.
typename Dest::PlainMatrixType res(rows(),cols());
evalTo(res);
typename Dest::PlainMatrixType res(*this);
dst -= res;
}