• quilan@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    30 minutes ago

    Phew, having to use reference_wrapper sucked. I hope this will be a bit more ergonomic.

  • faint_marble_noise@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 hours ago

    This allows to use methods of optional (c++23 added a couple of nice ones), as opposed to raw pointer. It seems to be obvious, but there is no mention of it in the discussion behind the link.