mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
static const class members turned into constexpr
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
2c0ef43b48
commit
64909b82bd
@@ -982,7 +982,7 @@ namespace internal {
|
||||
template <typename Derived, typename OtherDerived, bool IsVector>
|
||||
struct conservative_resize_like_impl
|
||||
{
|
||||
static const bool IsRelocatable = std::is_trivially_copyable<typename Derived::Scalar>::value;
|
||||
static constexpr bool IsRelocatable = std::is_trivially_copyable<typename Derived::Scalar>::value;
|
||||
static void run(DenseBase<Derived>& _this, Index rows, Index cols)
|
||||
{
|
||||
if (_this.rows() == rows && _this.cols() == cols) return;
|
||||
|
||||
@@ -634,7 +634,7 @@ template<typename Xpr, int NbEvaluations,
|
||||
>
|
||||
struct local_nested_eval_wrapper
|
||||
{
|
||||
static const bool NeedExternalBuffer = false;
|
||||
static constexpr bool NeedExternalBuffer = false;
|
||||
typedef typename Xpr::Scalar Scalar;
|
||||
typedef typename nested_eval<Xpr,NbEvaluations>::type ObjectType;
|
||||
ObjectType object;
|
||||
@@ -650,7 +650,7 @@ struct local_nested_eval_wrapper
|
||||
template<typename Xpr, int NbEvaluations>
|
||||
struct local_nested_eval_wrapper<Xpr,NbEvaluations,true>
|
||||
{
|
||||
static const bool NeedExternalBuffer = true;
|
||||
static constexpr bool NeedExternalBuffer = true;
|
||||
typedef typename Xpr::Scalar Scalar;
|
||||
typedef typename plain_object_eval<Xpr>::type PlainObject;
|
||||
typedef Map<PlainObject,EIGEN_DEFAULT_ALIGN_BYTES> ObjectType;
|
||||
|
||||
Reference in New Issue
Block a user