mirror of
https://github.com/boostorg/coroutine.git
synced 2026-01-31 08:02:18 +00:00
coroutine: remove deprecated interface
[SVN r86521]
This commit is contained in:
@@ -35,7 +35,6 @@ void bar( int i)
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef BOOST_COROUTINES_UNIDIRECT
|
||||
void foo( boost::coroutines::coroutine< void >::pull_type & source)
|
||||
{
|
||||
bar( count);
|
||||
@@ -49,23 +48,6 @@ void thread_fn()
|
||||
sink();
|
||||
}
|
||||
}
|
||||
#else
|
||||
typedef boost::coroutines::coroutine< void() > coro_t;
|
||||
|
||||
void foo( coro_t & c)
|
||||
{
|
||||
bar( count);
|
||||
c();
|
||||
}
|
||||
|
||||
void thread_fn()
|
||||
{
|
||||
{
|
||||
coro_t c( foo);
|
||||
c();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
int main( int argc, char * argv[])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user