Skip to content

Comment on Modern C++ – RAIIparent

Comments

The term modern C++ means RAII. Those other things are common and sometimes useful in new code that can use them. However anyone who says 'modern C++' is talking about RAII not those other things.

Already possible in C++ARM, as any look into 1990's C++ frameworks documentation on digital archives would prove, regarding RAII.

Or even articles in The C/C++ Users Journal, Dr Dobbs, PC Techniques, Microsoft Systems Journal.

Unfortunately many that write C with C++ compilers, only started paying attention around C++11.

The term Modern C++ predates C++11. C++11 gave us move constructors which makes RAII much more powerful, but we were doing it for a long time in C++. Well some of us were doing it, there are a lot of people who are writing the type of code that gives C++ a bad name (even today)

Isn’t “modern” a term that’s relative to the current time, rather than a fixed point in time?

Like, modern architecture, fashion, cuisine all change over time.

Why would “Modern C++” refer to a fixed point in time somewhere in the 90s?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.