[libcxx-commits] [PATCH] D118457: [libc++][pstl][NFC] Remove usage of std::result_of from Parallel STL

Ruslan Arutyunyan via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 31 11:27:06 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd01d91d1aec9: [libc++][pstl][NFC] Remove usage of std::result_of from Parallel STL (authored by rarutyun).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118457

Files:
  pstl/include/pstl/internal/utils.h


Index: pstl/include/pstl/internal/utils.h
===================================================================
--- pstl/include/pstl/internal/utils.h
+++ pstl/include/pstl/internal/utils.h
@@ -21,8 +21,8 @@
 {
 
 template <typename _Fp>
-typename std::result_of<_Fp()>::type
-__except_handler(_Fp __f)
+auto
+__except_handler(_Fp __f) -> decltype(__f())
 {
     try
     {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118457.404633.patch
Type: text/x-patch
Size: 372 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220131/35327dab/attachment-0001.bin>


More information about the libcxx-commits mailing list