diff --git a/include/boost/parser/detail/stl_interfaces/view_adaptor.hpp b/include/boost/parser/detail/stl_interfaces/view_adaptor.hpp index 4cbc2a36..9c84f3cf 100644 --- a/include/boost/parser/detail/stl_interfaces/view_adaptor.hpp +++ b/include/boost/parser/detail/stl_interfaces/view_adaptor.hpp @@ -259,7 +259,7 @@ namespace boost::parser::detail { namespace stl_interfaces { template struct closure : range_adaptor_closure> { - constexpr closure(F f) : f_(f) {} + constexpr closure(F f) : f_(std::move(f)) {} #if BOOST_PARSER_DETAIL_STL_INTERFACES_USE_CONCEPTS template