2
0
mirror of https://github.com/boostorg/fiber.git synced 2026-02-03 09:02:17 +00:00

example fiber-steeling updatedd

This commit is contained in:
Oliver Kowalke
2013-03-16 19:57:15 +01:00
parent 7ab57b66f7
commit 5ff11b0df4

View File

@@ -45,8 +45,7 @@ boost::fibers::future< int > fibonacci( int n)
{
boost::fibers::packaged_task< int() > pt( boost::bind( fibonacci_, n) );
boost::fibers::future< int > f( pt.get_future() );
boost::fibers::fiber * fi = new boost::fibers::fiber( boost::move( pt) );
// fi->detach();
boost::fibers::fiber( boost::move( pt) ).detach();
return boost::move( f);
}