[libcxx-commits] [PATCH] D99102: [libc++] Match declaration for non-member function std::swap(std::packaged_task) with what standard specify
Jason Liu via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Mar 24 15:34:23 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG09a84d304776: [libc++] Match declaration for non-member function std::swap(stdā¦ (authored by jasonliu).
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99102/new/
https://reviews.llvm.org/D99102
Files:
libcxx/include/future
Index: libcxx/include/future
===================================================================
--- libcxx/include/future
+++ libcxx/include/future
@@ -2126,10 +2126,10 @@
__p_ = promise<result_type>();
}
-template <class _Callable>
+template <class _Rp, class... _ArgTypes>
inline _LIBCPP_INLINE_VISIBILITY
void
-swap(packaged_task<_Callable>& __x, packaged_task<_Callable>& __y) _NOEXCEPT
+swap(packaged_task<_Rp(_ArgTypes...)>& __x, packaged_task<_Rp(_ArgTypes...)>& __y) _NOEXCEPT
{
__x.swap(__y);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99102.333156.patch
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210324/234793ab/attachment-0001.bin>
More information about the libcxx-commits
mailing list