Am 14.07.2012 13:06, schrieb Nat Linden:
On Sat, Jul 14, 2012 at 6:16 AM, Szymon Gatner
wrote: boost.context has been accepted quite some time ago, is there any eta on when it is going be officially part of boost?
asio (for async task running) + context (as a coroutine/continuation) == pure win Without disagreeing with the above, you might find that asio + coroutine is even more a win, as coroutine layers an application-level API on top of context: http://olk.bplaced.net/boost-coroutine.zip documentation (needs some enhancements, I know) at http://olk.bplaced.net/boost/libs/coroutine/doc/html/
As I worte in a previous posting - the example section contains code which integrates a coroutine inside a streambuf so that the stream using this streambuf can be used as usual (without blocking the application) inbuf ib( socket); istream is( & ib); std::string line; do { std::getline( line); ... } while ( line != "exit"); regards, Oliver