Page MenuHomePhabricator

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

Authored by rarutyun on Jan 28 2022, 5:02 AM.



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.

Diff Detail

Event Timeline

rarutyun requested review of this revision.Jan 28 2022, 5:02 AM
rarutyun created this revision.
Herald added a reviewer: Restricted Project. · View Herald TranscriptJan 28 2022, 5:02 AM
ldionne accepted this revision.Jan 31 2022, 8:20 AM
This revision is now accepted and ready to land.Jan 31 2022, 8:20 AM