diff options
author | Liam White <[email protected]> | 2022-04-13 21:02:55 +0200 |
---|---|---|
committer | Fernando Sahmkow <[email protected]> | 2022-10-06 21:00:53 +0200 |
commit | afab6c143cb486c7d14f1509cd04049ad08d3a65 (patch) | |
tree | fb3a35b23be7dd5b2c502ec550c027760257c6f3 /src/common/algorithm.h | |
parent | fd7afda1e802fffe843ac28811470432949fe7ee (diff) | |
download | yuzu-android-afab6c143cb486c7d14f1509cd04049ad08d3a65.tar.gz yuzu-android-afab6c143cb486c7d14f1509cd04049ad08d3a65.zip |
General: Fix compilation for GCC
Diffstat (limited to 'src/common/algorithm.h')
-rw-r--r-- | src/common/algorithm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/algorithm.h b/src/common/algorithm.h index 055dca142..c27c9241d 100644 --- a/src/common/algorithm.h +++ b/src/common/algorithm.h @@ -27,7 +27,7 @@ template <class ForwardIt, class T, class Compare = std::less<>> template <typename T, typename Func, typename... Args> T FoldRight(T initial_value, Func&& func, Args&&... args) { T value{initial_value}; - const auto high_func = [&value, &func]<typename T>(T x) { value = func(value, x); }; + const auto high_func = [&value, &func]<typename U>(U x) { value = func(value, x); }; (std::invoke(high_func, std::forward<Args>(args)), ...); return value; } |