[libcxx-commits] [PATCH] D141699: [libc++][ranges] Implement P2474R2(`views::repeat`).
Joe Loser via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 21 20:31:13 PST 2023
jloser added inline comments.
================
Comment at: libcxx/include/__ranges/repeat_view.h:56
+ if constexpr (!same_as<_Bound, unreachable_sentinel_t>)
+ _LIBCPP_ASSERT(__bound_ >= 0, "The value of bound must greater equal than 0");
+ }
----------------
**Quibble** "must be" instead of "must" may read slightly better. WDYT? Here and below.
================
Comment at: libcxx/test/std/ranges/range.factories/range.repeat.view/end.pass.cpp:33
+ static_assert(std::same_as<decltype(rv.end()), std::unreachable_sentinel_t>);
+ //ASSERT_NOEXCEPT(rv.end());
+ }
----------------
Should we uncomment this?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141699/new/
https://reviews.llvm.org/D141699
More information about the libcxx-commits
mailing list