
11 Sep
2012
11 Sep
'12
6:50 a.m.
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