Skip to content

Commit 647cec6

Browse files
committed
Address similar concern to the one about closures with move-only callables,
but this time for adaptors.
1 parent c2ddd6e commit 647cec6

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
@@ -335,7 +335,7 @@ namespace boost::parser::detail { namespace stl_interfaces {
335335
template<typename F>
336336
struct adaptor
337337
{
338-
constexpr adaptor(F f) : f_(f) {}
338+
constexpr adaptor(F f) : f_(std::move(f)) {}
339339

340340
template<typename... Args>
341341
constexpr auto operator()(Args &&... args) const

0 commit comments

Comments
 (0)