[libcxx-commits] [libcxx] [libcxx][test] std::array::iterator are not pointers by C++ standard (PR #70729)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 1 11:43:24 PDT 2023
================
@@ -60,6 +60,13 @@ static_assert(!HasMakeHeapR<UncheckedRange<const int*>>); // Doesn't satisfy `so
template <std::size_t N, class T, class Iter>
constexpr void verify_heap(const std::array<T, N>& heapified, Iter last, std::array<T, N> expected) {
+ assert(heapified == expected);
----------------
philnik777 wrote:
I don't think we should remove that static assertion. I'm also not sure what the problem was you were trying to solve with that change. I you need a range you can just do `std::ranges::subrange(Iter(array.data()), Sent(array.data() + array.size()))`.
https://github.com/llvm/llvm-project/pull/70729
More information about the libcxx-commits
mailing list