[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:32:24 PDT 2021


This revision was automatically updated to reflect the committed changes.
ldionne marked an inline comment as done.
Closed by commit rG2999b7307f70: [libc++] Make __decay_copy constexpr (authored by ldionne).

Changed prior to commit:
  https://reviews.llvm.org/D112650?vs=382749&id=382800#toc

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112650

Files:
  libcxx/include/__utility/decay_copy.h


Index: libcxx/include/__utility/decay_copy.h
===================================================================
--- libcxx/include/__utility/decay_copy.h
+++ libcxx/include/__utility/decay_copy.h
@@ -21,9 +21,10 @@
 _LIBCPP_BEGIN_NAMESPACE_STD
 
 template <class _Tp>
-inline _LIBCPP_INLINE_VISIBILITY typename decay<_Tp>::type __decay_copy(_Tp&& __t)
+_LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR
+typename decay<_Tp>::type __decay_copy(_Tp&& __t)
 #if _LIBCPP_STD_VER > 17
-    noexcept(is_nothrow_convertible_v<_Tp, remove_reference_t<_Tp> >)
+    noexcept(is_nothrow_convertible_v<_Tp, remove_reference_t<_Tp>>)
 #endif
 {
   return _VSTD::forward<_Tp>(__t);


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112650.382800.patch
Type: text/x-patch
Size: 659 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211027/e2e9ef7c/attachment.bin>


More information about the libcxx-commits mailing list