From e887c61b3d76f5cc5a6ab56ae960a99a05d9be94 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Tue, 16 Dec 2014 13:33:43 +0100 Subject: [PATCH] bug #821: workaround MSVC 2013 issue with using Base::Base::operator= --- Eigen/src/Core/MapBase.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Eigen/src/Core/MapBase.h b/Eigen/src/Core/MapBase.h index ab50c9b81..b145a0b3d 100644 --- a/Eigen/src/Core/MapBase.h +++ b/Eigen/src/Core/MapBase.h @@ -234,7 +234,11 @@ template class MapBase return derived(); } - using Base::Base::operator=; + // In theory MapBase 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 + // 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