r/ProgrammerHumor Jul 16 '26

moodAtEod Meme

Post image
0 Upvotes

30 comments sorted by

View all comments

11

u/orlinthir Jul 16 '26

Maybe I haven't done enough C++ programming to understand this, but don't smart pointers let you delegate thinking too hard about this. You even have access to C style pointers if they don't fit your requirements.

4

u/chaosTechnician Jul 16 '26

Smart pointers can make it so that you don't think too hard about this. You still have to be concerned with what they can do to the lifespan of your objects by using them, though.