• faint_marble_noise@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    20 days 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.

  • quilan@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    20 days ago

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