From c3bd40856d78acca721d65683284503163641c47 Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Tue, 17 Dec 2024 11:20:57 -0800 Subject: [PATCH] remove erroneous rvalue qualification --- include/boost/compat/function_ref.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/compat/function_ref.hpp b/include/boost/compat/function_ref.hpp index 701bb15..2838ce1 100644 --- a/include/boost/compat/function_ref.hpp +++ b/include/boost/compat/function_ref.hpp @@ -131,7 +131,7 @@ struct function_ref_base { function_ref_base(const function_ref_base&) noexcept = default; function_ref_base& operator=(const function_ref_base&) noexcept = default; - R operator()(Args&&... args) const noexcept(NoEx) { return this->invoke_(thunk_, std::forward(args)...); } + R operator()(Args... args) const noexcept(NoEx) { return this->invoke_(thunk_, std::forward(args)...); } }; } // namespace detail