In my daily and production ready C++ code I consciously got stuck with up to C++17 features that seem to be practical to me.
initialization auto x = {1};
auto seems SUPER compelling and looks like it might take some of the drudgework out of using C++, at least for whimps like me who generally reach for gc languages like Python first.
I knew C++ pretty well in the 90s. Hopefully one of these days I can dust off those neurons and enjoy some of the newer features that have come along since I last checked.
Re: Re: C++20+
By: feoh to All on Fri Feb 06 2026 06:04 pm
auto seems SUPER compelling and looks like it might take some of the drudgework out of using C++, at least for whimps like me who generally reach for gc languages like Python first.
I knew C++ pretty well in the 90s. Hopefully one of these days I can dust off those neurons and enjoy some of the newer features that have come along since I last checked.
The 'auto' keyword has been around in C++ since 2011 (added to the C++11 standard).
The 'auto' keyword has been around in C++ since 2011 (added to the C++11
standard).
The 'auto' keyword actually dates back to the pre-standard (i.e. 1978) C Programming language. It was a storage class modifier (the opposite meaning of 'static' when declaring a function-local variable). Since 'auto' was the default storage class, you didn't see it used much at all in C. So it was kind of safe to reuse for a different purporse in C++ and now the newest version of C (2023?) has a similar (but not identical) repurposing of the 'auto' keyword as how its used in C++.
| Sysop: | hdt |
|---|---|
| Location: | Melbourne, Vic. |
| Users: | 2 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 28:05:16 |
| Calls: | 1 |
| Calls today: | 1 |
| Files: | 22 |
| D/L today: |
22 files (17,847K bytes) |
| Messages: | 20,387 |