This addresses the usage of operator& in <list>.
(Note there are still more headers with the same issue.)
Paths
| Differential D112654
[libc++] Use addressof in list. ClosedPublic Authored by Mordante on Oct 27 2021, 12:44 PM.
Details
Summary This addresses the usage of operator& in <list>. (Note there are still more headers with the same issue.)
Diff Detail
Event TimelineComment Actions Minor test nits, but a fair number of nits.
This revision now requires changes to proceed.Oct 27 2021, 1:43 PM Mordante added inline comments.
Comment Actions Seems reasonable to me.
This revision is now accepted and ready to land.Nov 8 2021, 1:23 PM Closed by commit rG4732dd301086: [libc++] Use addressof in list. (authored by Mordante). · Explain WhyNov 11 2021, 9:56 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 385353 libcxx/include/list
libcxx/test/std/containers/sequences/list/list.cons/assign_move.addressof.compile.pass.cpp
libcxx/test/std/containers/sequences/list/list.modifiers/emplace.addressof.compile.pass.cpp
libcxx/test/std/containers/sequences/list/list.modifiers/erase_iter.addressof.compile.pass.cpp
libcxx/test/std/containers/sequences/list/list.modifiers/insert_iter_rvalue.addressof.compile.pass.cpp
libcxx/test/std/containers/sequences/list/list.modifiers/insert_iter_size_value.addressof.compile.pass.cpp
libcxx/test/std/containers/sequences/list/list.modifiers/insert_iter_value.addressof.compile.pass.cpp
libcxx/test/std/containers/sequences/list/list.ops/merge.pass.cpp
libcxx/test/std/containers/sequences/list/list.ops/merge_comp.addressof.compile.pass.cpp
libcxx/test/std/containers/sequences/list/list.ops/merge_comp.pass.cpp
libcxx/test/std/containers/sequences/list/list.ops/splice_pos_list_iter.addressof.compile.pass.cpp
libcxx/test/std/containers/sequences/list/list.ops/splice_pos_list_iter_iter.addressof.compile.pass.cpp
libcxx/test/std/containers/sequences/list/list.special/swap.addressof.compile.pass.cpp
|
Consider adding #include <__memory/addressof.h> here.