This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Make ThrowingIterator constexpr
ClosedPublic

Authored by philnik on Dec 11 2021, 8:04 AM.

Details

Reviewers
Quuxplusone
ldionne
Group Reviewers
Restricted Project
Commits
rG3d510343c4ab: [libc++] Make ThrowingIterator constexpr
Summary

Make ThrowingIterator constexpr

Diff Detail

Event Timeline

philnik requested review of this revision.Dec 11 2021, 8:04 AM
philnik created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 11 2021, 8:04 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Quuxplusone added inline comments.
libcxx/test/support/test_iterators.h
538

Nit: Here, and I'm guessing on the ctors, I'd prefer to see TEST_CONSTEXPR instead of TEST_CONSTEXPR_CXX14: i.e., pick the most aggressive constexprness possible. (Applies to any single-statement const-qualified member function.)

philnik updated this revision to Diff 393736.Dec 12 2021, 2:26 AM
philnik marked an inline comment as done.

Replaced some TEST_CONSTEXPR_CXX14 with TEST_CONSTEXPR

ldionne accepted this revision.Dec 13 2021, 6:03 AM
This revision is now accepted and ready to land.Dec 13 2021, 6:03 AM
This revision was automatically updated to reflect the committed changes.