diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index 700c11929..21d792f49 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -486,6 +486,12 @@ template class DenseBase #include EIGEN_DENSEBASE_PLUGIN #endif + // disable the use of evalTo for dense objects with a nice compilation error + template inline void evalTo(Dest& dst) const + { + EIGEN_STATIC_ASSERT((ei_is_same_type::ret),THE_EVAL_EVALTO_FUNCTION_SHOULD_NEVER_BE_CALLED_FOR_DENSE_OBJECTS); + } + protected: /** Default constructor. Do nothing. */ DenseBase()