while (n–->42) { std::cout << n; }

Introduction to C++ Metaprogramming

Interesting introduction to metaprogramming in the context of embedded systems.

Corresponding  C++ library with full static checking and abstractions to special function registers of embedded microcontrollers.