[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 12:13:18 PDT 2021
ldionne created this revision.
ldionne requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.
This is going to be necessary to implement some range adaptors.
As a fly-by fix, rename _LIBCPP_INLINE_VISIBILITY to _LIBCPP_HIDE_FROM_ABI
and remove a redundant inline keyword.
Repository:
rG LLVM Github Monorepo
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,7 +21,8 @@
_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> >)
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112650.382749.patch
Type: text/x-patch
Size: 549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211027/bcbb2e97/attachment.bin>
More information about the libcxx-commits
mailing list