bug #821: workaround MSVC 2013 issue with using Base::Base::operator=

This commit is contained in:
Gael Guennebaud 2014-12-16 13:33:43 +01:00
parent dcad508986
commit 7dad5f797e

View File

@ -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