[libcxx-commits] [libcxx] [libc++] Collapse `optional<T&>` inheritance hierarchy (PR #215286)
William Tran-Viet via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Aug 11 06:38:24 PDT 2026
================
@@ -235,7 +190,7 @@ class optional<_Tp&> : public __optional_ref_iterator_base<_Tp&> {
constexpr ~optional() = default;
- using __base::__get;
+ _LIBCPP_HIDE_FROM_ABI constexpr value_type& __get() const noexcept { return *__value_; }
----------------
smallp-o-p wrote:
I've been wanting to remove that, but I would do it in a follow up.
https://github.com/llvm/llvm-project/pull/215286
More information about the libcxx-commits
mailing list