diff --git a/example/Jamfile.v2 b/example/Jamfile.v2 index 5c5599d..67bd232 100644 --- a/example/Jamfile.v2 +++ b/example/Jamfile.v2 @@ -24,10 +24,6 @@ project boost/coroutine2/example multi ; -exe simple - : simple.cpp - ; - exe fibonacci : fibonacci.cpp ; diff --git a/example/simple.cpp b/example/simple.cpp deleted file mode 100644 index f8743d7..0000000 --- a/example/simple.cpp +++ /dev/null @@ -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 -#include - -#include - -using namespace boost::coroutines2; - -asymmetric_coroutine::pull_type make_dummy_range() -{ - return asymmetric_coroutine::pull_type([](asymmetric_coroutine::push_type& yield) - { - yield(1); - }); -} - -int main() { - std::distance(make_dummy_range()); // error - std::cout << "Done" << std::endl; - return EXIT_SUCCESS; -}