Skip to content

Commit 703a8af

Browse files
Andreas Buhrtzlaine
authored andcommitted
Fix error in drone CI
error: call to implicitly-deleted copy constructor of [snip] constexpr closure(F f) : f_(f) {}
1 parent 0eacce6 commit 703a8af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/parser/detail/stl_interfaces/view_adaptor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ namespace boost::parser::detail { namespace stl_interfaces {
259259
template<typename F>
260260
struct closure : range_adaptor_closure<closure<F>>
261261
{
262-
constexpr closure(F f) : f_(f) {}
262+
constexpr closure(F f) : f_(std::move(f)) {}
263263

264264
#if BOOST_PARSER_DETAIL_STL_INTERFACES_USE_CONCEPTS
265265
template<typename T>

0 commit comments

Comments
 (0)