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: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 126 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 06:42:35 |
| Calls: | 7,776 |
| Calls today: | 2 |
| Files: | 9,382 |
| D/L today: |
2,391 files (149M bytes) |
| Messages: | 396,172 |
| Posted today: | 8 |