[libcxx-commits] [libcxx] [libc++][NFC] Remove `optional::__get` (PR #217218)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Aug 20 05:34:58 PDT 2026


philnik777 wrote:

> > If we really want to avoid ADL we can also use `value()` instead, which I think is much more canonical than `.operator*()`. However, I'm not really care here?
> 
> I think it's fine to use `value()` at this moment. Although I'm not sure in the future, whether we will provide a mode where `value()` functions are deleted (as suggested by the `// freestanding-deleted` comments).

If we ever get to that point we can think about it then.


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


More information about the libcxx-commits mailing list