Is std::async supose to work with template function? I\'ve tried to lauch std::reverse as an asynchronous task bu got compile-time error.
I\'ve tried to use simpler
std::reverse is not a function but a function template, you can use an specialization of that template (which is a function):
std::reverse
auto result_reverse = std::async(&std::reverse, str.begin(), str.end());