Template Metaprogramming
In this lesson, we'll learn about template metaprogramming.
Template Metaprogramming
How this all started:
- 1994 Erwin Unruh discovered template metaprogramming by accident.
- His program failed to compile but calculated the first 30 prime numbers at compile-time.
- To prove his point, he used the error messages to display the first 30 prime numbers.
Let’s have a look at the screenshot of the error:
Get hands-on with 1400+ tech skills courses.