Implement P1391 (https://wg21.link/p1391) which allows
std::string_view to be constructible from any contiguous range of
characters.
Note that a different paper (http://wg21.link/P1989) handles the generic
range constructor for std::string_view.
Differential D110718
[libc++] Implement P1391 for string_view jloser on Sep 29 2021, 8:00 AM. Authored by
Details
Implement P1391 (https://wg21.link/p1391) which allows Note that a different paper (http://wg21.link/P1989) handles the generic
Diff Detail
Event TimelineComment Actions Mark tests as XFAIL: apple-clang-12.0 since AppleClang 12.0 doesn't support concepts. Comment Actions In general looks good, but the tests need some improvements.
Comment Actions Test the result in deduct.pass.cpp
Comment Actions LGTM, except for some small details.
Comment Actions LGTM with an assertion added. Also, bonus points for adding a test for the assertion, but that's non-blocking. Thanks a lot for working on this!
Comment Actions Add assert for valid range in string_view constructor
Comment Actions s/_LIBCPP_INLINE_VISIBILITY/_LIBCPP_HIDE_FROM_ABI If BuildKit is happy with this, I'll land it.
Comment Actions Add mixed-const iterator test in deduct.pass.cpp.
Comment Actions @jloser if buildkite is happy, ship it! |
This looks wrong. Is it a rebase error?