From dcb395c6f5ae420edf83d0640c3f1d4f3493f3d6 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 15 Feb 2010 11:09:33 +0100 Subject: [PATCH] explicitly disable the use of evalTo for dense object --- Eigen/src/Core/DenseBase.h | 6 ++++++ 1 file changed, 6 insertions(+) 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()