2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-01-31 20:22:07 +00:00

relax to C++11

This commit is contained in:
Oliver Kowalke
2015-12-12 23:19:33 +01:00
parent 2e6e215eba
commit db180f08da
10 changed files with 168 additions and 194 deletions

View File

@@ -42,7 +42,7 @@ void fn2() {
boost::fibers::promise< int > p;
boost::fibers::future< int > f( p.get_future() );
boost::this_fiber::yield();
boost::fibers::fiber( std::bind( fn1, & p, 7) ).detach();
boost::fibers::fiber( fn1, & p, 7).detach();
boost::this_fiber::yield();
BOOST_CHECK( 7 == f.get() );
}
@@ -717,8 +717,7 @@ void test_future_wait_void() {
void test_future_wait_with_fiber_1() {
boost::fibers::promise< int > p1;
boost::fibers::fiber(
std::bind( fn1, & p1, 7) ).detach();
boost::fibers::fiber( fn1, & p1, 7).detach();
boost::fibers::future< int > f1 = p1.get_future();