Differences between Boost.Coroutine and Boost.Coroutine2

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

+8
c ++ boost boost-coroutine boost-coroutine2
source share
2 answers

Some differences:

  • Boost.Coroutine2 requires C ++ 11
  • Boost.Coroutine provides symmetric and asymmetric coroutines; Boost.Coroutine2 provides only asymmetric coroutines.
+7
source share
  • boost.coroutine2 is a follow-up boost.coroutine project (boost.coroutine will be marked obsolete soon)
  • boost.coroutine2 uses the execute_context class of boost.context
  • boost.coroutine is implemented with the deprecated C-like fcontext-API from boost.context
+6
source share

All Articles