coroutine: intro of coroutine<>::pull_type, coroutine<>::push_type

[SVN r85058]
This commit is contained in:
Oliver Kowalke
2013-07-17 14:09:07 +00:00
parent c39d9509a4
commit 865902f9b5
22 changed files with 397 additions and 487 deletions

View File

@@ -17,7 +17,7 @@ struct X : private boost::noncopyable
~X() { std::cout << "~X()" << std::endl; }
};
void fn( boost::coroutines::push_coroutine< void > & c)
void fn( boost::coroutines::coroutine< void >::push_type & c)
{
X x;
int i = 0;
@@ -31,7 +31,7 @@ void fn( boost::coroutines::push_coroutine< void > & c)
int main( int argc, char * argv[])
{
{
boost::coroutines::pull_coroutine< void > c( fn);
boost::coroutines::coroutine< void >::pull_type c( fn);
for ( int k = 0; k < 3; ++k)
{
c();