Re:Is the preprocessor still needed in C++? (2017)
by unglaublich on Sunday December 06, 2020 @08:50AM
(#25323441)
It is since C++20.
Comment author tries to make code verbose to make their point or does not know about auto and the state of C++.
[ Parent
| on HN ]
Re:Is the preprocessor still needed in C++? (2017)
by Aardwolf on Sunday December 06, 2020 @08:55AM
(#25323457)
I simply copied it from the article (minus the surrounding function).
Fortunately you only need to write this at the utility function, not at every call site, so it's ok.
In general I find various new features in C++ suffer from verbosity, but of course without experimental this one gets better.