From 509a5fa77f1e2241123a0f22a2ea75a0e9267251 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 19 Jul 2018 18:47:38 +0200 Subject: [PATCH] Fix IsRelocatable without C++11 --- Eigen/src/Core/PlainObjectBase.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Eigen/src/Core/PlainObjectBase.h b/Eigen/src/Core/PlainObjectBase.h index 016e76a53..da329fd4f 100644 --- a/Eigen/src/Core/PlainObjectBase.h +++ b/Eigen/src/Core/PlainObjectBase.h @@ -924,7 +924,7 @@ struct conservative_resize_like_impl #if EIGEN_HAS_TYPE_TRAITS static const bool IsRelocatable = std::is_trivially_copyable::value; #else - static const bool IsRelocatable = NumTraits::RequireInitialization; + static const bool IsRelocatable = !NumTraits::RequireInitialization; #endif static void run(DenseBase& _this, Index rows, Index cols) {