3 ms·
Simple templates are not that hard to read. They can be tricky to write if you have things like templates using templates and specialization. But once you get t
by GuB-42 6y ago
Simple templates are not that hard to read. They can be tricky to write if you have things like templates using templates and specialization. But once you get the compiler to understand what you want, reading the code is usually not a problem.
Hell breaks loose when you start doing "metaprogramming". I did a bit of it and it felt like I was exploited the compiler in clever ways not intended by the original authors, SFINAE checks in particular. And to be honest, I think it is the case, or some people should have their head checked.
From the look of it, some modern C++ features attempt to fix that mess, notably concepts in C++20.