forked from boostorg/beast
Fix move-only arguments in bind_handler
This commit is contained in:
1 parent
3d7f1e7303
commit
f948c9cbe5
3 files changed
+21
-4
No files matched your search
@@ -51,10 +51,10 @@ class bound_handler
|
||||
boost::is_placeholder<typename
|
||||
std::decay<Arg>::type>::value == 0,
|
||||
Arg&&>::type
|
||||
extract(Arg&& arg, Vals& vals)
|
||||
extract(Arg&& arg, Vals&& vals)
|
||||
{
|
||||
boost::ignore_unused(vals);
|
||||
return arg;
|
||||
return std::forward<Arg>(arg);
|
||||
}
|
||||
|
||||
template<class Arg, class Vals>
|
||||
@@ -101,7 +101,7 @@ class bound_handler
|
||||
index_sequence<S...>)
|
||||
{
|
||||
boost::ignore_unused(args);
|
||||
h(std::get<S>(args)...);
|
||||
h(std::get<S>(std::move(args))...);
|
||||
}
|
||||
|
||||
template<
|
||||
@@ -118,7 +118,7 @@ class bound_handler
|
||||
{
|
||||
boost::ignore_unused(args);
|
||||
boost::ignore_unused(vals);
|
||||
h(extract(std::get<S>(args),
|
||||
h(extract(std::get<S>(std::move(args)),
|
||||
std::forward<ValsTuple>(vals))...);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user