[libcxx-commits] [PATCH] D112650: [libc++] Make __decay_copy constexpr

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 27 14:31:36 PDT 2021


ldionne marked 5 inline comments as done.
ldionne added a comment.

Thanks for the reviews everyone, I'll ship with the applied comments.



================
Comment at: libcxx/include/__utility/decay_copy.h:25
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR
+typename decay<_Tp>::type __decay_copy(_Tp&& __t)
 #if _LIBCPP_STD_VER > 17
----------------
jloser wrote:
> I'm assuming this is used in C++11 code (thread and future) which is why we spell `typename decay<_Tp>::type` instead of `decay_t<_Tp>`?
Yes!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112650



More information about the libcxx-commits mailing list