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)
10 #include <boost/context/continuation.hpp>
12 namespace ctx = boost::context;
14 ctx::continuation foo( ctx::continuation && c) {
17 } while ( c = c.resume() );
22 ctx::continuation c = ctx::callcc( foo);
25 } while ( c = c.resume() );
26 std::cout << "main: done" << std::endl;