[libcxx-commits] [PATCH] D101003: [libc++] <span>, like <string_view>, has no use for debug iterators.
Arthur O'Dwyer via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Apr 22 07:21:31 PDT 2021
Quuxplusone added inline comments.
================
Comment at: libcxx/include/span:203
using const_reference = const _Tp &;
- using iterator = __wrap_iter<pointer>;
+ using iterator = pointer;
using reverse_iterator = _VSTD::reverse_iterator<iterator>;
----------------
@miscco asks "Are there ABI concerns for `span`?" Well, in order to break, they'd have to be passing a `span<T>::iterator` across an ABI boundary. (Just passing a `const span<T>&` would be fine.) And `span` is new in C++20, which we don't claim to implement yet. So I think now is the perfect time to fix it. :)
Anyway, we kinda don't have a choice, right? :) The existing code simply fails to compile in `_LIBCPP_DEBUG=1` mode, and I think we need it to compile.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101003/new/
https://reviews.llvm.org/D101003
More information about the libcxx-commits
mailing list