• Valmond@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    5 months ago

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

    • pewpew
      link
      fedilink
      arrow-up
      3
      ·
      5 months ago

      Thanks, I was Just curious. I knew what * did but I wasn’t sure about &