mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Fix IsRelocatable without C++11
This commit is contained in:
parent
2ca2592009
commit
509a5fa77f
@ -924,7 +924,7 @@ struct conservative_resize_like_impl
|
|||||||
#if EIGEN_HAS_TYPE_TRAITS
|
#if EIGEN_HAS_TYPE_TRAITS
|
||||||
static const bool IsRelocatable = std::is_trivially_copyable<typename Derived::Scalar>::value;
|
static const bool IsRelocatable = std::is_trivially_copyable<typename Derived::Scalar>::value;
|
||||||
#else
|
#else
|
||||||
static const bool IsRelocatable = NumTraits<typename Derived::Scalar>::RequireInitialization;
|
static const bool IsRelocatable = !NumTraits<typename Derived::Scalar>::RequireInitialization;
|
||||||
#endif
|
#endif
|
||||||
static void run(DenseBase<Derived>& _this, Index rows, Index cols)
|
static void run(DenseBase<Derived>& _this, Index rows, Index cols)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user