[libcxx-commits] [libcxx] [libc++] Implement P3168R2: Give optional range support (PR #149441)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Jul 21 09:44:30 PDT 2025
================
@@ -117,6 +117,8 @@ class __wrap_iter {
friend class span;
template <class _Tp, size_t _Size>
friend struct array;
+ template <class _Tp>
+ friend class optional;
----------------
ldionne wrote:
FWIW I'm neutral on this. I don't think it hurts to have the `friend` declaration in all standard modes, but it also doesn't hurt to make it more strict and guard it. I do have some questions related to using `__wrap_iter` at all though, see below.
https://github.com/llvm/llvm-project/pull/149441
More information about the libcxx-commits
mailing list