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
std::result_of has been deprecated in C++ 17. Use std::invoke_result instead.
We should use std::invoke instead of write f(args...) directly.
We could use initializer in lambda's capture list in C++ 14, so instead of make_shared<std::packaged_task> and copying it into the lambda we can write [task = std::move(task)].
Notable changes:
std::result_ofhas been deprecated in C++ 17. Usestd::invoke_resultinstead.std::invokeinstead of writef(args...)directly.make_shared<std::packaged_task>and copying it into the lambda we can write[task = std::move(task)].