Modern C++ Design
Andrei Alexandrescu
Addison-Wesley, 2001
This book just blew me away. I’ve had access to compile-time programming in other languages and had worked pretty hard to understand templates. I felt I had a better than average grasp of how C++ templates work and are used. The techniques in this book were astounding. I have since found many sites devoted to these techniques, but I remain impressed with the way Alexandrescu explains the basics of these techniques.
Warning: This book is definitely not for everyone. But if you really want to push the limits of what you can do with the C++ programming language, you need to read this book.