]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/coroutine2/example/simple.cpp
2 // Copyright Oliver Kowalke 2014.
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/coroutine2/all.hpp>
12 using namespace boost::coroutines2
;
14 asymmetric_coroutine
<int>::pull_type
make_dummy_range()
16 return asymmetric_coroutine
<int>::pull_type([](asymmetric_coroutine
<int>::push_type
& yield
)
23 std::distance(make_dummy_range()); // error
24 std::cout
<< "Done" << std::endl
;