aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2010-02-15 11:09:33 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2010-02-15 11:09:33 +0100
commitdcb395c6f5ae420edf83d0640c3f1d4f3493f3d6 (patch)
tree1203c14c9d11a53a618d3f8fa33cc57f95b08eb6 /Eigen
parent21d0eb3f1146a3aa801b77374cf47bdae0ba5c77 (diff)
explicitly disable the use of evalTo for dense object
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Core/DenseBase.h6
1 files changed, 6 insertions, 0 deletions
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<typename Derived> class DenseBase
#include EIGEN_DENSEBASE_PLUGIN
#endif
+ // disable the use of evalTo for dense objects with a nice compilation error
+ template<typename Dest> inline void evalTo(Dest& dst) const
+ {
+ EIGEN_STATIC_ASSERT((ei_is_same_type<Dest,void>::ret),THE_EVAL_EVALTO_FUNCTION_SHOULD_NEVER_BE_CALLED_FOR_DENSE_OBJECTS);
+ }
+
protected:
/** Default constructor. Do nothing. */
DenseBase()