From 79c3cfabe351c4e3cd426878a141aed571e3c4d3 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 9 Dec 2014 19:01:25 +0100 Subject: [PATCH] Fix nomalloc_3 and binding reference to temporary issue --- Eigen/src/Core/ProductBase.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Eigen/src/Core/ProductBase.h b/Eigen/src/Core/ProductBase.h index 1d9f7e929..b002cdf5c 100644 --- a/Eigen/src/Core/ProductBase.h +++ b/Eigen/src/Core/ProductBase.h @@ -85,10 +85,14 @@ class ProductBase : public MatrixBase public: +#ifndef EIGEN_NO_MALLOC typedef typename Base::PlainObject BasePlainObject; typedef Matrix DynPlainObject; - typedef typename internal::conditional::type PlainObject; +#else + typedef typename Base::PlainObject PlainObject; +#endif ProductBase(const Lhs& a_lhs, const Rhs& a_rhs) : m_lhs(a_lhs), m_rhs(a_rhs) @@ -183,12 +187,12 @@ namespace internal { template struct nested, N, PlainObject> { - typedef PlainObject const& type; + typedef typename GeneralProduct::PlainObject const& type; }; template struct nested, N, PlainObject> { - typedef PlainObject const& type; + typedef typename GeneralProduct::PlainObject const& type; }; }