Differences between Boost.Coroutine and Boost.Coro

2019-02-21 14:59发布

What are the main differences between Boost.Coroutine and Boost.Coroutine2 ?

2条回答
女痞
2楼-- · 2019-02-21 15:27

Some differences:

  • Boost.Coroutine2 requires C++11
  • Boost.Coroutine provides symmetric and asymmetric coroutines, Boost.Coroutine2 only provides asymmetric coroutines.
查看更多
叼着烟拽天下
3楼-- · 2019-02-21 15:41
  • boost.coroutine2 is the follow-up project of boost.coroutine (boost.coroutine will be marked as deprecated soon)
  • boost.coroutine2 uses class execution_context from boost.context
  • boost.coroutine is implemented with the deprecated C-like fcontext-API from boost.context
查看更多
登录 后发表回答