【发布时间】:2016-12-24 03:57:00
【问题描述】:
boost::future 有一个成员函数:boost::future::then,而std::future 没有std::future::then。
这个wonderful article 显示了std::future::then 的用处。
为什么 C++17 中没有 std::future::then?
这只是一个疏忽,还是因为其他原因?
【问题讨论】:
-
Herb Sutter 对此功能提出了建议。我不知道这是否被排除在外。
-
也许可以看到这个讨论 - 它可以解释更多:stackoverflow.com/q/19225372/3990012
-
看起来期货的未来受到质疑。 thenable 的未来可能不在标准的范围内,我们可能不得不依赖其他库,如 boost 或 folly:modernescpp.com/index.php/a-short-detour-executors
标签: c++ multithreading asynchronous standards c++17