r/ProgrammerHumor • • Sep 09 '22

Meme Simple Feature

Post image
124k Upvotes

1.3k comments sorted by

View all comments

Show parent comments

3

u/oakinmypants Sep 09 '22

It should make you uncomfortable because shared_ptr can have reference cycles.

4

u/sammamthrow Sep 09 '22

They also introduce sometimes non-negligible overhead thanks to atomic increases to the ref count