• Feyd@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    10 hours ago

    How does unique_ptr teach reference counting? It’s just a way to interface with RAII and move semantics

    • LedgeDrop@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      5 hours ago

      You’re right. I was thinking of shared_ptr (it’s been a blissful long while since I’ve dived deep into C++ stl and boost)

      edit: a word