Skip to content

Commit b06e22a

Browse files
committed
Unifying
1 parent 14389aa commit b06e22a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

include/xtensor/xarray.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ namespace xt
104104
using inner_backstrides_type = typename base_type::inner_backstrides_type;
105105
using temporary_type = typename semantic_base::temporary_type;
106106
using expression_tag = Tag;
107-
static const std::size_t rank = SIZE_MAX;
107+
constexpr static std::size_t rank = SIZE_MAX;
108108

109109
xarray_container();
110110
explicit xarray_container(const shape_type& shape, layout_type l = L);

include/xtensor/xfixed.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ namespace xt
313313
using expression_tag = Tag;
314314

315315
constexpr static std::size_t N = std::tuple_size<shape_type>::value;
316-
static const std::size_t rank = N;
316+
constexpr static std::size_t rank = N;
317317

318318
xfixed_container() = default;
319319
xfixed_container(const value_type& v);

include/xtensor/xtensor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ namespace xt
105105
using inner_strides_type = typename base_type::inner_strides_type;
106106
using temporary_type = typename semantic_base::temporary_type;
107107
using expression_tag = Tag;
108-
static const std::size_t rank = N;
108+
constexpr static std::size_t rank = N;
109109

110110
xtensor_container();
111111
xtensor_container(nested_initializer_list_t<value_type, N> t);

include/xtensor/xview.hpp

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

433433
using container_iterator = pointer;
434434
using const_container_iterator = const_pointer;
435-
static const std::size_t rank = SIZE_MAX;
435+
constexpr static std::size_t rank = SIZE_MAX;
436436

437437
// The FSL argument prevents the compiler from calling this constructor
438438
// instead of the copy constructor when sizeof...(SL) == 0.

0 commit comments

Comments
 (0)