Fix IsRelocatable without C++11

This commit is contained in:
Gael Guennebaud 2018-07-19 18:47:38 +02:00
parent 2ca2592009
commit 509a5fa77f

View File

@ -924,7 +924,7 @@ struct conservative_resize_like_impl
#if EIGEN_HAS_TYPE_TRAITS
static const bool IsRelocatable = std::is_trivially_copyable<typename Derived::Scalar>::value;
#else
static const bool IsRelocatable = NumTraits<typename Derived::Scalar>::RequireInitialization;
static const bool IsRelocatable = !NumTraits<typename Derived::Scalar>::RequireInitialization;
#endif
static void run(DenseBase<Derived>& _this, Index rows, Index cols)
{