by _hao · 12mo ago · 0 comments
A lot of it is about making metaprogramming a lot easier to write and to read.
No more enable_if kludges since if constexpr (and concepts for specific stuff); and using concepts allows to better communicate intent (e.g.: template<typename I> can become template<std::integral I> if you want the template to be used only with integer types, and so on)
I’d like to see an example of a task that can be done with less verbosity in C++ than say, Python, using only the standard library
++foo; // Increment value of foo by one
foo += 1 # Increment value of foo by one