[libcxx-commits] [libcxx] [libc++] Implement P2988R12: `std::optional<T&>` (PR #155202)

William Tran-Viet via libcxx-commits libcxx-commits at lists.llvm.org
Sun Oct 26 20:13:45 PDT 2025


smallp-o-p wrote:

> * modification to `std::make_optional`, especially that `std::make_optional<X&>(x)` can call different overloads until and since C++26.

Just to confirm, is the intended change to disallow `std::make_optional<X&>(x)`? That is what I understood from the proposal.

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


More information about the libcxx-commits mailing list