On June 21, 2015 6:53:12 AM EDT, Oliver Kowalke
2015-06-21 12:19 GMT+02:00 Aaron Levy
: Are boost::coroutines::symmetric_coroutine<> and boost::coroutines::asymmetric_coroutine<> part of the coroutine library or coroutine2 library. Besides being C++14-only, in what ways does coroutine2 differ from coroutine?
Coroutine2 provides only boost::coroutines2::asymmetric_coroutine<> (boost::coroutines2::coroutine<> is a typedef of the previous one). Symmetric_coroutine<> (introduced for boost.fiber) is not implemented because its functionality/semantic is better represented by class boost::context::execution_context (part of boost.context). Class execution_context is used as building block (implementation) of boost::coroutines2::asymmetric_coroutine<> - the code becomes cleaner.
If there's only one kind of coroutine in coroutine2, why isn't it just named "coroutine"? ___ Rob (Sent from my portable computation engine)