f5fa62ed19
This also implements the proposed resolution to LWG issue 3247, so that the ill-formed <=> expression with nullptr is not used. PR libstdc++/94562 * include/bits/shared_ptr.h (operator<=>): Define for C++20. * include/bits/shared_ptr_base.h (operator<=>): Likewise. * include/bits/unique_ptr.h (operator<=>): Add inline specifier. * testsuite/20_util/shared_ptr/comparison/cmp_c++20.cc: New test. * testsuite/20_util/shared_ptr/comparison/less.cc: Do not expect std::less<A*> to be used when comparing std::shared_ptr<A> objects in C++20. |
||
---|---|---|
.. | ||
assign | ||
atomic | ||
casts | ||
comparison | ||
cons | ||
creation | ||
dest | ||
hash | ||
misc | ||
modifiers | ||
observers | ||
requirements | ||
thread |