News for hackers. Stuff that matters.
Re:My tutorial and take on C++20 coroutines by klyrs on Monday February 22, 2021 @04:06PM (#26230619)
That's just a simple example. I think the following should work, possibly with modification for forwarding:

    class Stooge {...};

    CoroutineIterator<Stooge> three_stooges() {
       co_yield Stooge("Larry");
       co_yield Stooge("Curly");
       co_yield Stooge("Moe");
    }

There are no comments on this comment yet.