[libcxx-commits] [libcxx] [libc++] Remove accidentally public `optional::__get()` method (PR #194530)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 28 03:40:12 PDT 2026


================
@@ -71,6 +71,8 @@ Deprecations and Removals
 - In ``__bit_reference`` (the proxy ``reference`` type of ``bitset`` and ``vector<bool>``), the overloaded ``operator&``
   is removed as it is non-standard and causes non-conforming behavior.
 
+- In ``optional``, an internal ``__get()`` method was mistakenly exposed, and has been moved to private.
+
----------------
frederick-vs-ja wrote:

I don't think we need to mention this in the release note. `__get` is an __ugly name, so users are supposed not to touch it.

https://github.com/llvm/llvm-project/pull/194530


More information about the libcxx-commits mailing list