Maven (famous) to Programmer Humor@programming.dev • 6 months agoI love new featureslemmy.zipimagemessage-square44arrow-up1336
arrow-up1336imageI love new featureslemmy.zipMaven (famous) to Programmer Humor@programming.dev • 6 months agomessage-square44
minus-square@Gladaed@feddit.orglinkfedilink3•6 months agoIn C++ you should never have owning raw pointers. Unless you have a good reason™. Raw pointers are great, but not for ownership.
minus-square@Gladaed@feddit.orglinkfedilink4•6 months agoAnd you should. It even works for classes whose constructors your implementation cannot see, if you aren’t a bitch about it.
In C++ you should never have owning raw pointers. Unless you have a good reason™.
Raw pointers are great, but not for ownership.
I just use
unique_ptr
99% of the timeAnd you should.
It even works for classes whose constructors your implementation cannot see, if you aren’t a bitch about it.