[libcxx-commits] [PATCH] D100255: [libcxx] adds `range` access CPOs

Christopher Di Bella via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Apr 11 12:43:25 PDT 2021


cjdb added inline comments.


================
Comment at: libcxx/include/__ranges/access.h:67
+  requires __is_complete<remove_all_extents_t<_Tp> >
+  [[nodiscard]] constexpr _Tp* operator()(_Tp (&__t)[_Np]) const noexcept {
+    return __t + 0;
----------------
tcanens wrote:
> This needs to reject const rvalue arrays.
See deleted overload below.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100255/new/

https://reviews.llvm.org/D100255



More information about the libcxx-commits mailing list