29 Nov
2021
29 Nov
'21
5:30 a.m.
Robert Ramey via Boost
Couldn't one achieve the desired effect by just updating the implementation of boost.coroutine with the implementation of boost.spawn?
No, I've already provided boost.coroutine2 - that's why boost.context was deprecated. Unfortunately we can't remove it form the boost collection because boost.asio has a dependency to boost.coroutine. The coroutine libraries are too much heavyweight for the purpose of spawn() (for instance push_type and pull_type etc.). boost.spawn uses boost.context's fiber directly - without the boilerplate code required by coroutine libs (take a look at boost/spawn/impl/spawn.hpp).