aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/MapBase.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2014-12-16 13:33:43 +0100
committerGravatar Gael Guennebaud <g.gael@free.fr>2014-12-16 13:33:43 +0100
commit7dad5f797e8c270be5f32aee154f6660df2242f5 (patch)
treef6f63415432a3dedd73b56093cc930ee6beba991 /Eigen/src/Core/MapBase.h
parentdcad508986b85a49777dd15a00b88b61e2ef6975 (diff)
bug #821: workaround MSVC 2013 issue with using Base::Base::operator=
Diffstat (limited to 'Eigen/src/Core/MapBase.h')
-rw-r--r--Eigen/src/Core/MapBase.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Eigen/src/Core/MapBase.h b/Eigen/src/Core/MapBase.h
index 3c67edae5..5d51548cd 100644
--- a/Eigen/src/Core/MapBase.h
+++ b/Eigen/src/Core/MapBase.h
@@ -243,7 +243,11 @@ template<typename Derived> class MapBase<Derived, WriteAccessors>
return derived();
}
- using Base::Base::operator=;
+ // In theory MapBase<Derived, ReadOnlyAccessors> should not make a using Base::operator=,
+ // and thus we should directly do: using Base::Base::operator=;
+ // However, this would confuse recent MSVC 2013 (bug 821), and since MapBase<Derived, ReadOnlyAccessors>
+ // has operator= to make ICC 11 happy, we can also make MSVC 2013 happy as follow:
+ using Base::operator=;
};
#undef EIGEN_STATIC_ASSERT_INDEX_BASED_ACCESS