fix compilation of array tests

This commit is contained in:
Benoit Jacob
2011-01-24 09:38:50 -05:00
parent 9089488210
commit 5bfde30e48
2 changed files with 4 additions and 4 deletions

View File

@@ -136,7 +136,7 @@ operator-(const Scalar& scalar) const
return *this + (-scalar);
}
friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const Derived> >
friend inline const CwiseUnaryOp<internal::scalar_add_op<Scalar>, const CwiseUnaryOp<internal::scalar_opposite_op<Scalar>, const Derived> >
operator-(const Scalar& scalar,const EIGEN_CURRENT_STORAGE_BASE_CLASS<Derived>& other)
{
return (-other) + scalar;