All Questions
Tagged with smart-pointer programming-practices
1 question
36
votes
1
answer
30k
views
raw, weak_ptr, unique_ptr, shared_ptr etc... How to choose them wisely?
There is a lot of pointers in C++ but to be honest in 5 years or so in C++ programming (specifically with the Qt Framework) I only use the old raw pointer:
SomeKindOfObject *someKindOfObject = new ...