为什么 C++17 中没有 std::future::then?
Why is there no std::future::then in C++17?
boost::future
有一个成员函数:boost::future::then
,而std::future
没有std::future::then
.
这 wonderful article 显示了 std::future::then
的用处。
为什么C++17中没有std::future::then
?
这只是一个疏忽,还是因为背后有其他理由?
.then
支持已合并到并发 TS 中,并发 TS 于 2016 年初完成。实现并发 TS 的实践经验很少,并且在 C++17 需要成为功能之前剩下的时间不多了完成,它没有进入。事实上,他们甚至懒得提议将它添加到 C++17 中已经太晚了。
boost::future
有一个成员函数:boost::future::then
,而std::future
没有std::future::then
.
这 wonderful article 显示了 std::future::then
的用处。
为什么C++17中没有std::future::then
?
这只是一个疏忽,还是因为背后有其他理由?
.then
支持已合并到并发 TS 中,并发 TS 于 2016 年初完成。实现并发 TS 的实践经验很少,并且在 C++17 需要成为功能之前剩下的时间不多了完成,它没有进入。事实上,他们甚至懒得提议将它添加到 C++17 中已经太晚了。