From 921a645481aa8825549960c19db2c1bee8375f8f Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Wed, 10 Sep 2014 10:33:19 +0200 Subject: ArrayWrapper and MatrixWrapper classes should not be nested by reference. --- Eigen/src/Core/ArrayWrapper.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Eigen/src/Core/ArrayWrapper.h') diff --git a/Eigen/src/Core/ArrayWrapper.h b/Eigen/src/Core/ArrayWrapper.h index 4bb648024..28d7b7bd5 100644 --- a/Eigen/src/Core/ArrayWrapper.h +++ b/Eigen/src/Core/ArrayWrapper.h @@ -29,6 +29,11 @@ struct traits > : public traits::type > { typedef ArrayXpr XprKind; + // Let's remove NestByRefBit + enum { + Flags0 = traits::type >::Flags, + Flags = Flags0 & ~NestByRefBit + }; }; } @@ -166,6 +171,11 @@ struct traits > : public traits::type > { typedef MatrixXpr XprKind; + // Let's remove NestByRefBit + enum { + Flags0 = traits::type >::Flags, + Flags = Flags0 & ~NestByRefBit + }; }; } -- cgit v1.2.3