File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments