[PATCH v2 2/2] libstdc++: implement std::generator

Will Hawkins hawkinsw@obs.cr
Tue Dec 26 20:28:42 GMT 2023


On Thu, Dec 21, 2023 at 4:26 PM Arsen Arsenović <arsen@aarsen.me> wrote:
>
> libstdc++-v3/ChangeLog:
>

... snip ...

> +       void
> +       _M_jump_in(_Coro_handle __rest, _Coro_handle __new) noexcept
> +       {
> +         __glibcxx_assert(&__new.promise()._M_nest == this);
> +         __glibcxx_assert(this->_M_is_bottom());
> +         // We're bottom.  We're also top of top is unset (note that this is

Should this read:

// We're bottom.  We're also top if top is unset (note that this is

?

Very impressive work -- I learned a ton by reading your implementation.
Will


More information about the Libstdc++ mailing list