• @[email protected]
    link
    fedilink
    32 months ago

    In C++ you should never have owning raw pointers. Unless you have a good reason™.

    Raw pointers are great, but not for ownership.

    • qaz
      link
      fedilink
      English
      6
      edit-2
      2 months ago

      I just use unique_ptr 99% of the time

      • @[email protected]
        link
        fedilink
        42 months ago

        And you should.

        It even works for classes whose constructors your implementation cannot see, if you aren’t a bitch about it.