• Feyd@programming.dev
    link
    fedilink
    arrow-up
    4
    ·
    11 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
      2
      ·
      edit-2
      7 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