Closed
Bug 1769778
Opened 2 years ago
Closed 2 years ago
Replace deprecated std::result_of_t with std::invoke_result_t
Categories
(Core :: MFBT, task, P3)
Core
MFBT
Tracking
()
RESOLVED
FIXED
102 Branch
People
(Reporter: cpeterson, Assigned: cpeterson)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
std::result_of_t
was deprecated in C++17 and removed in C++20.
https://en.cppreference.com/w/cpp/types/result_of
The pattern to replace std::result_of_t
with std::invoke_result_t
is:
-std::result_of_t<Func(ArgTypes)>
+std::invoke_result_t<Func, ArgTypes>
Assignee | ||
Comment 1•2 years ago
|
||
std::result_of_t was deprecated in C++17 and removed in C++20.
https://en.cppreference.com/w/cpp/types/result_of
The pattern to replace std::result_of_t with std::invoke_result_t is:
-std::result_of_t<Func(ArgTypes)>
+std::invoke_result_t<Func, ArgTypes>
Pushed by cpeterson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8711fa976e4a Replace deprecated std::result_of_t with std::invoke_result_t. r=janv
Comment 3•2 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•