3 ms·
Author here, what you say is entirely correct — I didn't emphasize enough that this was all possible before in a more limited way. Those parts were cut out to t
by green7ea 1y ago
Author here, what you say is entirely correct — I didn't emphasize enough that this was all possible before in a more limited way. Those parts were cut out to try to make the article more focused on understanding RAII.
The modern parts covered in the article are the move semantics making RAII more expressive and the standard library embracing the concept throughout.
I think the idea of modern is to convince everyone to give these 'new' techniques a try if they aren't already using them.
- pjmlp 1y agoIt is always a good thing to spread knowledge, however when C++11 is modern, what C++14, C++17, C++20, C++23, C++26 are supposed to be? There are already plenty of memes on C++ conferences regarding that.
- einsteinx2 1y ago> what C++14, C++17, C++20, C++23, C++26 are supposed to be? Postmodern C++?
- pjmlp 1y agoThat would be C++14, if C++11 is the modern one.
- green7ea 1y agoI would see that C++11 started the modern C++ era and the later standards have refined and perfected it. I would be very sad to have to go back to C++98, it would feel like a different language — I would only be inconvenienced to go back to C++11. Maybe ranges changes that ;-).