mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-09 23:24:01 +00:00
remove example simple
This commit is contained in:
parent
ea5d41d9f8
commit
0fc8ca7f6c
@ -24,10 +24,6 @@ project boost/coroutine2/example
|
||||
<threading>multi
|
||||
;
|
||||
|
||||
exe simple
|
||||
: simple.cpp
|
||||
;
|
||||
|
||||
exe fibonacci
|
||||
: fibonacci.cpp
|
||||
;
|
||||
|
@ -1,26 +0,0 @@
|
||||
|
||||
// Copyright Oliver Kowalke 2014.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
|
||||
#include <boost/coroutine2/all.hpp>
|
||||
|
||||
using namespace boost::coroutines2;
|
||||
|
||||
asymmetric_coroutine<int>::pull_type make_dummy_range()
|
||||
{
|
||||
return asymmetric_coroutine<int>::pull_type([](asymmetric_coroutine<int>::push_type& yield)
|
||||
{
|
||||
yield(1);
|
||||
});
|
||||
}
|
||||
|
||||
int main() {
|
||||
std::distance(make_dummy_range()); // error
|
||||
std::cout << "Done" << std::endl;
|
||||
return EXIT_SUCCESS;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user