mirror of
https://github.com/boostorg/coroutine.git
synced 2026-02-01 08:22:18 +00:00
coroutine: intro of coroutine<>::pull_type, coroutine<>::push_type
[SVN r85058]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user