c++ - Boost.Coroutine 和 Boost.Coroutine2 的区别

标签 c++ boost boost-coroutine boost-coroutine2

Boost.Coroutine 之间的主要区别是什么?和 Boost.Coroutine2

最佳答案

一些区别:

  • Boost.Coroutine2 需要 C++11
  • Boost.Coroutine 提供对称和非对称协程,Boost.Coroutine2 只提供非对称协程。

关于c++ - Boost.Coroutine 和 Boost.Coroutine2 的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37775009/

相关文章:

c++ - 如何在C++类中调用静态库函数?

c# - 相当于 System::String::Format ("{0:D9}", x);

xcode - 在Xcode 4上 boost 库静态链接

c++ - 使用多核提升协程

c++ - boost 中的协程局部变量

c++ - Eclipse C/C++ (CDT) 切换工作空间(共享)

c++ - 如何将前面的 0 强制为 int(而不实际输出它)

c++ - 选择一些用格雷码编码的数字

c++ - 使用 istream 从 boost::asio UDP 套接字中检索 float

c++ - 我可以在同一条链上生成多个协程而不使它们重叠吗?