Skip to content

Commit 117adc1

Browse files
committed
Removed const workaround on Windows
1 parent ff10a85 commit 117adc1

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

include/xtensor/containers/xstorage.hpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,12 +1431,6 @@ namespace xt
14311431
using allocator_type = std::conditional_t<Align != 0, xt_simd::aligned_allocator<T, Align>, std::allocator<T>>;
14321432
};
14331433

1434-
#if defined(_MSC_VER)
1435-
#define XTENSOR_CONST
1436-
#else
1437-
#define XTENSOR_CONST const
1438-
#endif
1439-
14401434
/**
14411435
* A std::array like class with all member function (except reverse iterators)
14421436
* as constexpr. The data is immutable once set.
@@ -1528,7 +1522,7 @@ namespace xt
15281522
return N;
15291523
}
15301524

1531-
XTENSOR_CONST T m_data[N > 0 ? N : 1];
1525+
const T m_data[N > 0 ? N : 1];
15321526
};
15331527

15341528
template <class T, std::size_t N>
@@ -1896,6 +1890,4 @@ namespace std
18961890
#endif
18971891
// clang-format on
18981892

1899-
#undef XTENSOR_CONST
1900-
19011893
#endif

0 commit comments

Comments
 (0)