From 94acccc126d430bf34587527d84ff9b389219c2f Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Sun, 26 Jan 2014 15:35:44 +0100 Subject: Fix Random().normalized() by introducing a nested_eval helper (recall that the old nested<> class is deprecated) --- Eigen/src/Core/Dot.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Eigen/src/Core/Dot.h') diff --git a/Eigen/src/Core/Dot.h b/Eigen/src/Core/Dot.h index 718de5d1a..38f6fbf44 100644 --- a/Eigen/src/Core/Dot.h +++ b/Eigen/src/Core/Dot.h @@ -141,8 +141,13 @@ template inline const typename MatrixBase::PlainObject MatrixBase::normalized() const { - typedef typename internal::nested::type Nested; +#ifndef EIGEN_TEST_EVALUATORS + typedef typename internal::nested::type Nested; typedef typename internal::remove_reference::type _Nested; +#else + typedef typename internal::nested_eval::type _Nested; +// typedef typename internal::remove_reference::type _Nested; +#endif // EIGEN_TEST_EVALUATORS _Nested n(derived()); return n / n.norm(); } -- cgit v1.2.3