Template metaprogramming can be used for computing things like factorial at compile time instead of during runtime. I've heard that some programming contests have introduced limitations on compilation time exactly to weed out template metaprogramming abuse.
Is there any innocent looking example of using templates that takes some really-really long time (like several hours) to compile?