What are the main differences between Boost.Coroutine and Boost.Coroutine2 ?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Some differences:
- Boost.Coroutine2 requires C++11
- Boost.Coroutine provides symmetric and asymmetric coroutines, Boost.Coroutine2 only provides asymmetric coroutines.
回答2:
- 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