This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Addresses LWG3755.
ClosedPublic

Authored by Mordante on Jan 30 2023, 9:31 AM.

Details

Reviewers
ldionne
philnik
Group Reviewers
Restricted Project
Commits
rGf02c9e6f26fc: [libc++] Addresses LWG3755.
Summary
LWG3755 tuple-for-each can call user-defined operator,

Diff Detail

Event Timeline

Mordante created this revision.Jan 30 2023, 9:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 30 2023, 9:31 AM
Mordante requested review of this revision.Jan 30 2023, 9:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 30 2023, 9:31 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik added inline comments.
libcxx/test/libcxx/ranges/range.adaptors/range.adaptor.tuple/tuple-for-each.pass.cpp
2

IMO this should be tested through the public API. Otherwise this could regress easily if we refactor internals.

ldionne accepted this revision.Jan 31 2023, 10:14 AM
ldionne added a subscriber: ldionne.
ldionne added inline comments.
libcxx/test/libcxx/ranges/range.adaptors/range.adaptor.tuple/tuple-for-each.pass.cpp
2

All the places that currently use tuple-for-each return void right now. I think that's the only way we have of testing this right now.

24
This revision is now accepted and ready to land.Jan 31 2023, 10:14 AM
philnik accepted this revision.Jan 31 2023, 10:34 AM
Mordante marked 2 inline comments as done.Jan 31 2023, 11:07 AM
This revision was automatically updated to reflect the committed changes.