bug #505: add more examples of bad and correct usages of auto and eval().

This commit is contained in:
Gael Guennebaud
2015-09-02 13:04:30 +02:00
parent aba8c9ee17
commit be5e2ecc21
2 changed files with 18 additions and 0 deletions

View File

@@ -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