You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because std::function is designed with multiple executions in mind there is no possibility to move arguments to the callable object on invocation. However, since base::task can be called only once it is possible to guarantee that arguments to the callable stored by the task can be passed via move. This would allow to use moveable only types as arguments.
The text was updated successfully, but these errors were encountered:
Because
std::function
is designed with multiple executions in mind there is no possibility to move arguments to the callable object on invocation. However, sincebase::task
can be called only once it is possible to guarantee that arguments to the callable stored by the task can be passed via move. This would allow to use moveable only types as arguments.The text was updated successfully, but these errors were encountered: