3 ms·
It makes the C++ preprocessor a horrible language. Whether C++ templates are an improvement is very much up for debate.
by rocqua 7y ago
It makes the C++ preprocessor a horrible language.
Whether C++ templates are an improvement is very much up for debate.
- pjc50 7y agoC++ templates allow you to do some brilliant metaprogramming. They can also be computationally expensive to compile, produce incomprehensible error messages, and are a great way of teleporting surprising behavior into your program. Especially when combined with operator overloading.
- pjmlp 7y agoAt least with C++20 modules and concepts that should improve.