aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/DenseBase.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-09-02 13:04:30 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-09-02 13:04:30 +0200
commitbe5e2ecc21b5ea22d692d80377301003654789db (patch)
treea057cd3ff35ba4667964002bde482694ca4d3744 /Eigen/src/Core/DenseBase.h
parentaba8c9ee176de6821ab483a0f284f725e0e5d603 (diff)
bug #505: add more examples of bad and correct usages of auto and eval().
Diffstat (limited to 'Eigen/src/Core/DenseBase.h')
-rw-r--r--Eigen/src/Core/DenseBase.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h
index 005f68aa5..50922a679 100644
--- a/Eigen/src/Core/DenseBase.h
+++ b/Eigen/src/Core/DenseBase.h
@@ -405,6 +405,8 @@ template<typename Derived> class DenseBase
*
* Notice that in the case of a plain matrix or vector (not an expression) this function just returns
* a const reference, in order to avoid a useless copy.
+ *
+ * \warning Be carefull with eval() and the auto C++ keyword, as detailed in this \link TopicPitfalls_auto_keyword page \endlink.
*/
EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE EvalReturnType eval() const