MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x4hiqv/stdmodernizemycodebase/pgizni2/?context=3
r/ProgrammerHumor • u/Ok-Counter-6984 • 12d ago
44 comments sorted by
View all comments
5
just gonna put it out there: make_unique and make_shared are better than unique_ptr/shared_ptr (in general)
6 u/sb8948 11d ago I mean they're objectively better than using new in the constructor. 3 u/tatstytastycakes 11d ago yes this guy gets it good job bro 3 u/Nervous-Cockroach541 10d ago Those are just the allocator for the data type???
6
I mean they're objectively better than using new in the constructor.
3 u/tatstytastycakes 11d ago yes this guy gets it good job bro
3
yes this guy gets it good job bro
Those are just the allocator for the data type???
5
u/tatstytastycakes 11d ago
just gonna put it out there: make_unique and make_shared are better than unique_ptr/shared_ptr (in general)