mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
0d58450659
This C++26 change was just approved in Tokyo, in P2944R3. It adds operator== and operator<=> overloads to std::reference_wrapper. The operator<=> overloads in the paper cause compilation errors for any type without <=> so they're implemented here with deduced return types and constrained by a requires clause. libstdc++-v3/ChangeLog: * include/bits/refwrap.h (reference_wrapper): Add comparison operators as proposed by P2944R3. * include/bits/version.def (reference_wrapper): Define. * include/bits/version.h: Regenerate. * include/std/functional: Enable feature test macro. * testsuite/20_util/reference_wrapper/compare.cc: New test. |
||
---|---|---|
.. | ||
24803.cc | ||
41792.cc | ||
80504.cc | ||
83427.cc | ||
compare.cc | ||
constexpr.cc | ||
deduction.cc | ||
incomplete.cc | ||
invoke-2.cc | ||
invoke-3.cc | ||
invoke-noexcept.cc | ||
invoke.cc | ||
lwg2993.cc | ||
ref_neg.cc | ||
requirements.cc | ||
result_type.cc | ||
typedefs-2.cc | ||
typedefs-3.cc | ||
typedefs.cc |