Skip to content

Commit 36971af

Browse files
committed
Removed XTENSOR_CONSTEXPR_ENHANCED_STATIC
1 parent fbe24db commit 36971af

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

include/xtensor/containers/xfixed.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ namespace xt
365365

366366
storage_type m_storage;
367367

368-
XTENSOR_CONSTEXPR_ENHANCED_STATIC inner_shape_type m_shape = S();
369-
XTENSOR_CONSTEXPR_ENHANCED_STATIC inner_strides_type m_strides = get_strides<L, inner_strides_type>(S());
370-
XTENSOR_CONSTEXPR_ENHANCED_STATIC inner_backstrides_type
368+
constexpr static inner_shape_type m_shape = S();
369+
constexpr static inner_strides_type m_strides = get_strides<L, inner_strides_type>(S());
370+
constexpr static inner_backstrides_type
371371
m_backstrides = get_backstrides(m_shape, m_strides);
372372

373373
storage_type& storage_impl() noexcept;
@@ -487,9 +487,9 @@ namespace xt
487487

488488
container_closure_type m_storage;
489489

490-
XTENSOR_CONSTEXPR_ENHANCED_STATIC inner_shape_type m_shape = S();
491-
XTENSOR_CONSTEXPR_ENHANCED_STATIC inner_strides_type m_strides = get_strides<L, inner_strides_type>(S());
492-
XTENSOR_CONSTEXPR_ENHANCED_STATIC inner_backstrides_type
490+
constexpr static inner_shape_type m_shape = S();
491+
constexpr static inner_strides_type m_strides = get_strides<L, inner_strides_type>(S());
492+
constexpr static inner_backstrides_type
493493
m_backstrides = get_backstrides(m_shape, m_strides);
494494

495495
storage_type& storage_impl() noexcept;

include/xtensor/containers/xstorage.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1728,7 +1728,7 @@ namespace xt
17281728

17291729
private:
17301730

1731-
XTENSOR_CONSTEXPR_ENHANCED_STATIC cast_type m_array = cast_type({X...});
1731+
constexpr static cast_type m_array = cast_type({X...});
17321732
};
17331733

17341734
#undef XTENSOR_FIXED_SHAPE_CONSTEXPR

include/xtensor/core/xfunction.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ namespace xt
6161
template <std::size_t... N, class is_shape_trivial>
6262
struct xfunction_cache_impl<fixed_shape<N...>, is_shape_trivial>
6363
{
64-
XTENSOR_CONSTEXPR_ENHANCED_STATIC fixed_shape<N...> shape = fixed_shape<N...>();
65-
XTENSOR_CONSTEXPR_ENHANCED_STATIC bool is_trivial = is_shape_trivial::value;
66-
XTENSOR_CONSTEXPR_ENHANCED_STATIC bool is_initialized = true;
64+
constexpr static fixed_shape<N...> shape = fixed_shape<N...>();
65+
constexpr static bool is_trivial = is_shape_trivial::value;
66+
constexpr static bool is_initialized = true;
6767
};
6868

6969
template <class... CT>

0 commit comments

Comments
 (0)