r/ProgrammerHumor • • Oct 12 '26

Meme stdModernizeMyCodebase

Post image
190 Upvotes

44 comments sorted by

View all comments

5

u/tatstytastycakes Oct 13 '26

just gonna put it out there: make_unique and make_shared are better than unique_ptr/shared_ptr (in general)

6

u/sb8948 Oct 13 '26

I mean they're objectively better than using new in the constructor.

3

u/tatstytastycakes Oct 14 '26

yes this guy gets it good job bro

3

u/[deleted] Oct 14 '26

Those are just the allocator for the data type???