diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index 38a838cf1..9c409eecf 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -195,12 +195,12 @@ template class Ref Base::construct(expr); } template - inline Ref(const MatrixBase& expr, + inline Ref(const DenseBase& expr, typename internal::enable_if::value&&bool(Traits::template match::MatchAtCompileTime)),Derived>::type* = 0, int = Derived::ThisConstantIsPrivateInPlainObjectBase) #else template - inline Ref(MatrixBase& expr) + inline Ref(DenseBase& expr) #endif { Base::construct(expr.const_cast_derived()); @@ -221,7 +221,7 @@ template class Ref - inline Ref(const MatrixBase& expr) + inline Ref(const DenseBase& expr) { // std::cout << match_helper::HasDirectAccess << "," << match_helper::OuterStrideMatch << "," << match_helper::InnerStrideMatch << "\n"; // std::cout << int(StrideType::OuterStrideAtCompileTime) << " - " << int(Derived::OuterStrideAtCompileTime) << "\n";