[libcxx-commits] [libcxx] [libc++][tuple][utility] P2968R2 Make `std::ignore` a first-class object (PR #97401)

Hristo Hristov via libcxx-commits libcxx-commits at lists.llvm.org
Sat Jul 6 19:44:44 PDT 2024


================
@@ -46,6 +46,7 @@ Implemented Papers
 - P2872R3 - Remove ``wstring_convert`` From C++26
 - P3142R0 - Printing Blank Lines with ``println`` (as DR against C++23)
 - P2944R3 - Comparisons for ``reference_wrapper`` (comparison operators for ``reference_wrapper`` only)
+- P2968R2 - Make ``std::ignore`` a first-class object (as DR against C++11)
----------------
H-G-Hristov wrote:

@mordante Thank you for the review. 

Regarding the implementation: I am not sure what makes a paper a DR. https://en.cppreference.com/w/cpp/compiler_support/26 seems to have listed [P2968R2](https://wg21.link/P2968R2) as DR11. I assumed that DR are listed here: https://github.com/cplusplus/draft/issues/7078 but I don't have access to the link.

Why wasn't this voted as DR? To me it would make sense but I can't really tell. Should I restore the original implementation and tests for the pre-C++26 versions? Or keep the current implementation and update release notes as you suggest:

> I'm not against changing operator=(auto&&) const to operator=(const auto &) const for all language versions, but I feel that should be mentioned separately in the release notes.

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


More information about the libcxx-commits mailing list