Variadic and Variable Templates in C++14

C++11 introduced Variadic Templates and constexpr that ease and allow type-safe computations at compile time. For embedded development this is an important aspect, because it provides a means to create ROMable data in type-safe C++. In combination with C++14 mechanism of Variable Templates, which actually define constants, there are unprecedented possibilities for compile-time computations. This talk does not only show the mechanisms available but also demonstrates a non-trivial example, how they can be used to compute interesting data at compile time. It also demonstrates the dangers of trying to do too much at compile-time by showing stuff you shouldn't try at work.

Speaker: Peter Sommerlad

Slides: Variadic and Variable Templates in C++14


Go back