This addresses the usage of operator& in <unordered_set>.
(Note there are still more headers with the same issue.)
Paths
| Differential D117917
[libc++] Use addressof in unordered_set. ClosedPublic Authored by Mordante on Jan 21 2022, 12:01 PM.
Details
Summary This addresses the usage of operator& in <unordered_set>. (Note there are still more headers with the same issue.)
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jan 21 2022, 12:14 PM Comment Actions LGTM if CI is green!
Mordante added inline comments.
Closed by commit rG26544b98f7bf: [libc++] Use addressof in unordered_set. (authored by Mordante). · Explain WhyJan 22 2022, 2:41 AM This revision was automatically updated to reflect the committed changes. Mordante marked 2 inline comments as done.
Revision Contents
Diff 402062 libcxx/include/unordered_set
libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.multiset/unord.multiset.cnstr/move_alloc.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.set/emplace_hint.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.set/insert_hint_const_lvalue.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.set/insert_hint_rvalue.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.set/iterator.operators.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move.addressof.compile.pass.cpp
libcxx/test/std/containers/unord/unord.set/unord.set.cnstr/move_alloc.addressof.compile.pass.cpp
|
This line can be removed, can't it?
(Ditto throughout, probably. Please investigate each UNSUPPORTED and remove the ones that can be removed.)