Skip to content

Commit

Permalink
proc_dff: use invoke_result_t instead of result_of
Browse files Browse the repository at this point in the history
  • Loading branch information
georgerennie committed Nov 28, 2024
1 parent 8fc9e71 commit 390ff55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion passes/proc/proc_dff.cc
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ class Dff {
// from the function as the LSB. This function also returns the value
// calculated for the LSB.
template <typename F>
typename std::result_of<F(size_t)>::type shrink_while_matching_values(F f) {
typename std::invoke_result_t<F, size_t> shrink_while_matching_values(F f) {
const auto base_val = f(0);

size_t new_size;
Expand Down

0 comments on commit 390ff55

Please sign in to comment.