2 // Copyright Oliver Kowalke 2016.
3 // Distributed under the Boost Software License, Version 1.0.
4 // (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
11 #include <boost/context/continuation.hpp>
13 namespace ctx = boost::context;
16 ctx::continuation c=ctx::callcc(
17 [](ctx::continuation && c){
28 for ( int j = 0; j < 10; ++j) {
29 std::cout << c.get_data<int>() << " ";
32 std::cout << std::endl;
33 std::cout << "main: done" << std::endl;