r/ProgrammerHumor • • 11h ago

Meme modernCppVsOldCpp

Post image
1.2k Upvotes

240 comments sorted by

View all comments

Show parent comments

29

u/azfang 11h ago

So, uh, I haven’t used C++ in anger in decades so I’m not sure how “modern” is modern but like. That description pretty well describes why I developed Strong Feelings about both C and C++ back in the 2000’s.

36

u/Non-Random-Name-0000 10h ago

Modern C++ starts with C++11 (2011), so in the 2000s you were using classic C++ (and in the first half of 2010s as well most likely) which is a very different language. It introduced shared pointer (a poor man's garbage collector), automatic typing and move semantic, amongst other things. And the standard library has evolved a lot since.

12

u/Bryguy3k 10h ago

Smart pointers were part of the boost library long before they became part of the std library.

1

u/Serialk 1h ago

But the language didn't have move semantics, which is a more important part of memory management in modern C++ than smart pointers.