diff options
author | Antonio Sánchez <cantonios@google.com> | 2024-03-15 18:07:02 +0000 |
---|---|---|
committer | Antonio Sánchez <cantonios@google.com> | 2024-03-15 18:07:02 +0000 |
commit | 9df21dc8b4b576a7aa5c0094daa8d7e8b8be60f0 (patch) | |
tree | 11f7e99e227af1c16dd0d407faaacf58a2830eb8 | |
parent | 157756130a154b8b819090fa16bb7f7f3bd5211f (diff) | |
download | eigen-upstream-3.4.tar.gz |
Work around VS2015 compile bug.upstream-3.4
-rw-r--r-- | Eigen/src/Core/Ref.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Eigen/src/Core/Ref.h b/Eigen/src/Core/Ref.h index c2a37eadb..07da15550 100644 --- a/Eigen/src/Core/Ref.h +++ b/Eigen/src/Core/Ref.h @@ -312,8 +312,8 @@ template<typename PlainObjectType, int Options, typename StrideType> class Ref inline Ref(DenseBase<Derived>& expr) #endif { - EIGEN_STATIC_ASSERT(bool(internal::is_lvalue<Derived>::value), THIS_EXPRESSION_IS_NOT_A_LVALUE__IT_IS_READ_ONLY); - EIGEN_STATIC_ASSERT(bool(Traits::template match<Derived>::MatchAtCompileTime), STORAGE_LAYOUT_DOES_NOT_MATCH); + EIGEN_STATIC_ASSERT((static_cast<bool>(internal::is_lvalue<Derived>::value)), THIS_EXPRESSION_IS_NOT_A_LVALUE__IT_IS_READ_ONLY); + EIGEN_STATIC_ASSERT((static_cast<bool>(Traits::template match<Derived>::MatchAtCompileTime)), STORAGE_LAYOUT_DOES_NOT_MATCH); EIGEN_STATIC_ASSERT(!Derived::IsPlainObjectBase,THIS_EXPRESSION_IS_NOT_A_LVALUE__IT_IS_READ_ONLY); // Construction must pass since we will not create temporary storage in the non-const case. const bool success = Base::construct(expr.const_cast_derived()); |