scoped: don't force rvals for function object
This commit is contained in:
parent
174bd62a29
commit
1ca47626aa
@ -77,7 +77,7 @@ namespace cruft::scoped {
|
|||||||
template <typename FuncT, typename ...Args>
|
template <typename FuncT, typename ...Args>
|
||||||
class function {
|
class function {
|
||||||
public:
|
public:
|
||||||
explicit function (FuncT &&_function, Args&& ..._args):
|
explicit function (FuncT _function, Args ..._args):
|
||||||
m_function (std::forward<FuncT> (_function)),
|
m_function (std::forward<FuncT> (_function)),
|
||||||
m_args (std::forward<Args> (_args)...)
|
m_args (std::forward<Args> (_args)...)
|
||||||
{ ; }
|
{ ; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user