remove example simple

This commit is contained in:
Oliver Kowalke 2016-11-16 09:12:10 +01:00
parent ea5d41d9f8
commit 0fc8ca7f6c
2 changed files with 0 additions and 30 deletions

View File

@ -24,10 +24,6 @@ project boost/coroutine2/example
<threading>multi
;
exe simple
: simple.cpp
;
exe fibonacci
: fibonacci.cpp
;

View File

@ -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;
}