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

@@ -95,10 +95,10 @@ bool operator!=( leaf const& l, leaf const& r)
class tree_visitor : public visitor
{
private:
boost::coroutines::push_coroutine< leaf & > & c_;
boost::coroutines::coroutine< leaf & >::push_type & c_;
public:
tree_visitor( boost::coroutines::push_coroutine< leaf & > & c) :
tree_visitor( boost::coroutines::coroutine< leaf & >::push_type & c) :
c_( c)
{}
@@ -112,7 +112,7 @@ public:
{ c_( l); }
};
void enumerate_leafs( boost::coroutines::push_coroutine< leaf & > & c, node::ptr_t root)
void enumerate_leafs( boost::coroutines::coroutine< leaf & >::push_type & c, node::ptr_t root)
{
tree_visitor v( c);
root->accept( v);