The thing is that when there are coroutines they can work in random order, and they can end up but
BOOST_LOG_NAMED_SCOPE(...)
keeps scope's name on each stackframe being oblivious to the fact that those stackframes are not nested, so they can be destructed in any order, not to mention that it's not that hard to put on a scenario where the scope according to boost::log::named_scope
is different from the actual one.
How to make boost:log
compatible with boost::coroutine
and boost::context
?