This is an archive of the discontinued LLVM Phabricator instance.

[libc++] [ranges] Fix LWG3470 "convertible-to-non-slicing seems to reject valid case"
ClosedPublic

Authored by Quuxplusone on Jan 21 2022, 8:34 PM.

Diff Detail

Event Timeline

Quuxplusone requested review of this revision.Jan 21 2022, 8:34 PM
Quuxplusone created this revision.
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald TranscriptJan 21 2022, 8:34 PM
philnik added inline comments.Jan 22 2022, 5:38 AM
libcxx/test/std/ranges/range.utility/range.subrange/lwg3470.pass.cpp
24–28

This should also work in constexpr context, right? Please test that case.

Added constexpr test, and a couple more (arguably too tangential) things I thought to test.

philnik accepted this revision as: philnik.Jan 22 2022, 2:05 PM

I feel like the extra tests should be in it's own file, but I don't really care either way.

Mordante accepted this revision as: Mordante.Jan 23 2022, 9:46 AM

LGTM!

This revision was not accepted when it landed; it landed in state Needs Review.Jan 26 2022, 4:37 PM
This revision was automatically updated to reflect the committed changes.