[libcxx-commits] [libcxx] [libc++] Implement P3168R2: Give optional range support (PR #149441)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 20 18:44:12 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;
----------------
frederick-vs-ja wrote:
I think we should guard this declaration with `_LIBCPP_STD_VER >= 26` (or at least `_LIBCPP_STD_VER >= 17`). Although the declaration of `span` wasn't guarded previously.
https://github.com/llvm/llvm-project/pull/149441
More information about the libcxx-commits
mailing list