[libcxx-commits] [PATCH] D117044: [libc++] [ranges] Implement ranges::cdata

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jan 11 16:52:09 PST 2022


philnik accepted this revision.
philnik added a comment.

LGTM



================
Comment at: libcxx/include/__ranges/data.h:83-85
+      noexcept(noexcept(ranges::data(static_cast<const remove_reference_t<_Tp>&>(__t))))
+      -> decltype(      ranges::data(static_cast<const remove_reference_t<_Tp>&>(__t)))
+      { return          ranges::data(static_cast<const remove_reference_t<_Tp>&>(__t)); }
----------------
The standard only says `static_cast<const T&>()`, but that doesn't make much sense, so I'm guessing that's a wording defect?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117044



More information about the libcxx-commits mailing list