[all-commits] [llvm/llvm-project] d01d91: [libc++][pstl][NFC] Remove usage of std::result_of...

Ruslan Arutyunyan via All-commits all-commits at lists.llvm.org
Mon Jan 31 11:27:13 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d01d91d1aec9cca8dc7259009a6b3db0900e8623
      https://github.com/llvm/llvm-project/commit/d01d91d1aec9cca8dc7259009a6b3db0900e8623
  Author: Ruslan Arutyunyan <ruslan.arutyunyan at intel.com>
  Date:   2022-01-31 (Mon, 31 Jan 2022)

  Changed paths:
    M pstl/include/pstl/internal/utils.h

  Log Message:
  -----------
  [libc++][pstl][NFC] Remove usage of std::result_of from Parallel STL

std::result_of creates problems when building with C++20 because it's
deprecated there.

The solution is to remove it and get return value type for a function
with decltype.

Substitute std::invoke_result for std::result_of is unnecessary because
we don't have std::invoke semantics within the function - we don't work
with pointer-to-member's.

Reviewed by: ldionne, MikeDvorskiy, #libc

Differential Revision: https://reviews.llvm.org/D118457




More information about the All-commits mailing list