为什么在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
。
boost::future
has a member function: boost::future::then
, while std::future
has no std::future::then
.
这篇精彩的文章显示 std :: future :: then
的有用性。
为什么没有 std :: future :: then
在C ++ 17中?
Why is there no std::future::then
in C++17?
这仅仅是疏忽,还是由于其他原因?
Is it just an oversight, or because of other rationale behind?
推荐答案
。然后
支持并入了Concurrency TS,这是并发TS的实现几乎没有实践经验,并且在C ++ 17需要完成功能之前几乎没有剩余时间,因此并没有加入。确实,已经很晚了,他们没有实现。甚至不建议将其添加到C ++ 17。
.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.
这篇关于为什么在C ++ 17中没有std :: future :: then?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!