mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-03 21:01:23 +00:00
proc_dff: use invoke_result_t instead of result_of
This commit is contained in:
parent
8fc9e71b84
commit
390ff5501d
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ private:
|
||||||
// from the function as the LSB. This function also returns the value
|
// from the function as the LSB. This function also returns the value
|
||||||
// calculated for the LSB.
|
// calculated for the LSB.
|
||||||
template <typename F>
|
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);
|
const auto base_val = f(0);
|
||||||
|
|
||||||
size_t new_size;
|
size_t new_size;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue