Fixes #1176
This commit is contained in:
Jonathan Wakely 2018-03-27 11:45:16 +01:00
parent 9ac22abe0a
commit dbe8bf0207

View File

@ -17765,7 +17765,7 @@ The syntax and techniques needed are pretty horrendous.
##### Reason
Template metaprogramming is hard to get right, slows down compilation, and is often very hard to maintain.
However, there are real-world examples where template metaprogramming provides better performance that any alternative short of expert-level assembly code.
However, there are real-world examples where template metaprogramming provides better performance than any alternative short of expert-level assembly code.
Also, there are real-world examples where template metaprogramming expresses the fundamental ideas better than run-time code.
For example, if you really need AST manipulation at compile time (e.g., for optional matrix operation folding) there may be no other way in C++.