diff options
author | Gael Guennebaud <g.gael@free.fr> | 2012-02-09 15:25:42 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2012-02-09 15:25:42 +0100 |
commit | 8dd3ae282d0a1426e0a7d0d7bb155e85f6cf8bb1 (patch) | |
tree | 1c70f0b5008f4eb3aa467b1b9b9bac11397c84e8 /Eigen/src/Core/Map.h | |
parent | 44b19b432c1fc86da7a1836a23007504d995009a (diff) |
fix bug #417: Map should be nested by value, not by reference
Diffstat (limited to 'Eigen/src/Core/Map.h')
-rw-r--r-- | Eigen/src/Core/Map.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Eigen/src/Core/Map.h b/Eigen/src/Core/Map.h index dd0673609..2bf80b3af 100644 --- a/Eigen/src/Core/Map.h +++ b/Eigen/src/Core/Map.h @@ -102,7 +102,7 @@ struct traits<Map<PlainObjectType, MapOptions, StrideType> > || HasNoOuterStride || ( OuterStrideAtCompileTime!=Dynamic && ((static_cast<int>(sizeof(Scalar))*OuterStrideAtCompileTime)%16)==0 ) ), - Flags0 = TraitsBase::Flags, + Flags0 = TraitsBase::Flags & (~NestByRefBit), Flags1 = IsAligned ? (int(Flags0) | AlignedBit) : (int(Flags0) & ~AlignedBit), Flags2 = (bool(HasNoStride) || bool(PlainObjectType::IsVectorAtCompileTime)) ? int(Flags1) : int(Flags1 & ~LinearAccessBit), @@ -120,7 +120,6 @@ template<typename PlainObjectType, int MapOptions, typename StrideType> class Ma public: typedef MapBase<Map> Base; - EIGEN_DENSE_PUBLIC_INTERFACE(Map) typedef typename Base::PointerType PointerType; @@ -181,7 +180,6 @@ template<typename PlainObjectType, int MapOptions, typename StrideType> class Ma PlainObjectType::Base::_check_template_params(); } - EIGEN_INHERIT_ASSIGNMENT_OPERATORS(Map) protected: |