[libcxx-commits] [PATCH] D115686: [libc++] [ranges] Introduce _LIBCPP_AUTO_CAST(x) for auto(x)

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri Dec 17 07:50:06 PST 2021


ldionne added a comment.

We should have an entry for P0849R8 in our status pages. It's a CWG paper but it does have some effects on the library -- can you add it and mark it as complete?



================
Comment at: libcxx/include/__ranges/access.h:111
       typename iterator_t<_Tp>;
-      { _VSTD::__decay_copy(_VSTD::forward<_Tp>(__t).end()) } -> sentinel_for<iterator_t<_Tp> >;
     };
----------------
`__t` is "an lvalue that denotes the reified object for `E`", and that's why we don't want to use `std::forward` -- right?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115686



More information about the libcxx-commits mailing list