Details
- Reviewers
philnik Mordante - Group Reviewers
Restricted Project - Commits
- rG8be1197285bd: [libc++] Implement P2499R0 (`string_view` range constructor should be…
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
LGTM % nits. Do you need someone to land it? If yes, please provide "Your Name" <your@email.addres>.
libcxx/docs/ReleaseNotes.rst | ||
---|---|---|
40 | ||
libcxx/test/std/strings/string.view/string.view.cons/from_range.pass.cpp | ||
189 | I wouldn't bother saying which paper changed it. It's not like anybody will care when reading this later. |
LGTM modulo one nit.
libcxx/docs/ReleaseNotes.rst | ||
---|---|---|
40 | This is the style we switched to in the previous release, so let's keep using that. |
This was accepted as a paper, not as a LWG issue/DR, right? If so, why is this not guarded with a version check for the C+ Standard?
Hi Louis Dionne!
This is tested above: https://github.com/llvm/llvm-project/blob/8be1197285bdff6e03bf26b77052daa710f73068/libcxx/include/string_view#L319
#if _LIBCPP_STD_VER > 20 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES)
So this is C++23 change.
Sorry, I looked way too quickly at this patch. Thanks for the patch and for correcting me!