What is the difference between future and shared_future?
The motivation for these two future types goes back to move semantics, move-only types, and the new C++11 feature to return move-only types from ordinary functions. In C++98/03, if you wanted to return a type from a factory function: A make_A() { A a; // … return a; } then A had to be CopyConstructible. … Read more