diff --git a/include/mbgl/util/unique_function.hpp b/include/mbgl/util/unique_function.hpp index c02efeb631a..880748ad79e 100644 --- a/include/mbgl/util/unique_function.hpp +++ b/include/mbgl/util/unique_function.hpp @@ -48,8 +48,8 @@ class unique_function : public std::function { struct wrapper && std::is_move_constructible_v>> { Fn fn; - wrapper(Fn &&fn) - : fn(std::forward(fn)) {} + wrapper(Fn &&fn_) + : fn(std::forward(fn_)) {} wrapper(wrapper &&) = default; wrapper &operator=(wrapper &&) = default;