[libcxx-commits] [libcxx] [libc++] Implement P2988R12: `std::optional<T&> (PR #155202)
A. Jiang via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 25 00:05:01 PDT 2025
================
@@ -919,20 +937,38 @@ public:
return std::move(this->__get());
}
- template <class _Up>
+ template <class _Up = remove_cv_t<_Tp>>
----------------
frederick-vs-ja wrote:
The default template arguments are added via [LWG3886](https://cplusplus.github.io/LWG/issue3886). Would you mind to implement the whole resolution of LWG3886 (which also modifies `expected`) first?
https://github.com/llvm/llvm-project/pull/155202
More information about the libcxx-commits
mailing list