December 2004
Intermediate to advanced
400 pages
8h 29m
English
If syntactic sugar didn’t count, we’d all be programming in assembly language.
This chapter covers what we believe to be the most important application area for metaprogramming in general and C++ metaprogramming in particular: building domain-specific embedded languages (DSELs).
Most of the template metaprogramming techniques we use today were invented in the course of implementing a DSEL. C++ metaprograms first began to be used for DSEL creation sometime in 1995, with impressive results. Interest in metaprogramming has grown steadily ever since, but—maybe because a new way to exploit templates seems to be discovered every week—this excitement is often focused on implementation techniques. As a ...
Read now
Unlock full access