$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [Review.Coroutine] More comments, questions and suggestions
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2012-09-11 02:50:51
> While this is not satisfactory, maybe the self_t could take care of it.
> 
> int f78( coro_int_string::self_t & self, std::string const&
> str_dont_use_it)
> {
>      std::string const* str;
>      self.bind(str, str_dont_use_it);
> 
>      // now self_t will reassign to str each time yield is called
>      self.yield( str->length());
>      self.yield( str->length());
>      return str->length();
> }
> 
> This is close to the goal I'm looking for. The user should not take care 
> of reassigning the actual parameters.
> 
> Oliver, I don't know if you , that know well your library, see if this 
> could be implemented or even improved.
I've to think about how this issue could be solved - might take a while.
regards,
Oliver