• Valmond@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    You can pass nullptr in the second example (that is not what OP wrote though, hes second is making a copy).