[libcxx-commits] [libcxx] [libc++] Correct `optional<T&>` implementation (PR #174537)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 7 10:46:17 PST 2026


================
@@ -20,16 +26,19 @@ struct X {
 };
 
 int main(int, char**) {
----------------
frederick-vs-ja wrote:

We should use `void test() { /*... */ }`. 

BTW, it seems correct to me to use a `.verify.cpp` to verify overload deletion.

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


More information about the libcxx-commits mailing list