Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is there no std::future::then in C++17?

boost::future has a member function: boost::future::then, while std::future has no std::future::then.

This wonderful article shows how useful std::future::then would be.

Why is there no std::future::then in C++17?

Is it just an oversight, or because of other rationale behind?

like image 740
xmllmx Avatar asked Dec 24 '16 03:12

xmllmx


1 Answers

.then support was incorporated into the Concurrency TS, which was finalized in early 2016. There was little practical experience with implementations of Concurrency TS, and with little time remaining until C++17 needed to be feature complete, it didn't make it in. Indeed, it was so late they didn't even bother proposing to add it to C++17.

like image 146
Nicol Bolas Avatar answered Oct 11 '22 21:10

Nicol Bolas