diff --git a/include/xtensor/containers/xstorage.hpp b/include/xtensor/containers/xstorage.hpp index af96f002b..7849f7726 100644 --- a/include/xtensor/containers/xstorage.hpp +++ b/include/xtensor/containers/xstorage.hpp @@ -1431,12 +1431,6 @@ namespace xt using allocator_type = std::conditional_t, std::allocator>; }; -#if defined(_MSC_VER) -#define XTENSOR_CONST -#else -#define XTENSOR_CONST const -#endif - /** * A std::array like class with all member function (except reverse iterators) * as constexpr. The data is immutable once set. @@ -1528,7 +1522,7 @@ namespace xt return N; } - XTENSOR_CONST T m_data[N > 0 ? N : 1]; + const T m_data[N > 0 ? N : 1]; }; template @@ -1896,6 +1890,4 @@ namespace std #endif // clang-format on -#undef XTENSOR_CONST - #endif