Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions include/xtensor/containers/xstorage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1431,12 +1431,6 @@ namespace xt
using allocator_type = std::conditional_t<Align != 0, xt_simd::aligned_allocator<T, Align>, std::allocator<T>>;
};

#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.
Expand Down Expand Up @@ -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 <class T, std::size_t N>
Expand Down Expand Up @@ -1896,6 +1890,4 @@ namespace std
#endif
// clang-format on

#undef XTENSOR_CONST

#endif
Loading