adapt new execution_context API

This commit is contained in:
Oliver Kowalke
2015-11-10 20:02:33 +01:00
parent fe869dd847
commit 4bb8f7585f
22 changed files with 501 additions and 544 deletions

View File

@@ -9,15 +9,12 @@
#include <boost/coroutine2/all.hpp>
int main()
{
int main() {
boost::coroutines2::coroutine< void >::push_type sink(
[&]( boost::coroutines2::coroutine< void >::pull_type & source) {
[]( boost::coroutines2::coroutine< void >::pull_type & source) {
std::cout << "inside coroutine-fn" << std::endl;
});
sink();
std::cout << "Done" << std::endl;
return EXIT_SUCCESS;
}