News for hackers. Stuff that matters.
Re:An opinionated history of programming languages by ncmncm on Saturday October 03, 2020 @08:08PM (#24675661)
It demonstrates a method of generating a family of types or functions that, until C++17, would have required Template Metaprogramming via partial specialization or template function overloading, but is now just programming.

The key line is "if constexpr", which is evaluated at compile time and terminates the recursion.

There are no comments on this comment yet.