scoped: don't force rvals for function object

This commit is contained in:
Danny Robson 2019-04-25 09:22:02 +10:00
parent 174bd62a29
commit 1ca47626aa

View File

@ -77,7 +77,7 @@ namespace cruft::scoped {
template <typename FuncT, typename ...Args>
class function {
public:
explicit function (FuncT &&_function, Args&& ..._args):
explicit function (FuncT _function, Args ..._args):
m_function (std::forward<FuncT> (_function)),
m_args (std::forward<Args> (_args)...)
{ ; }