
Oliver wrote <snip>
I'd like to remember that the review starts at September 3, 2012.
<snip>
regards, Oliver
Thanks for your work with coroutine, Oliver. I am working on my review (which will be positive). I have a simple coding problem that you may be able to resolve for me. The code below is designed to run indefinitely with one coroutine. I have, however, used one integer parameter to the subroutine f(). The integer parameter is, however, not needed. Yet I can not seem to remove the integer parameter and get the sample to compile. Can I remove the integer parameter? If so, how should it be coded? Thank you. Best regards, Chris. ------------------------------------------------------------------------------------ #include <iostream> #include <boost/coroutine/all.hpp> #include <boost/bind.hpp> typedef boost::coro::coroutine< void() > coro_t; void f(coro_t::self_t & self, int) { for(;;) { std::cout << "In coroutine" << std::endl; self.yield(); } } int main(int, char**) { coro_t c( boost::bind(f, _1, 1000) ); for ( ;; ) { std::cout << "In main" << std::endl; c(); } }