C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
the container for test input and output. More...
Public Attributes | |
unsigned const | expected |
unsigned const | got |
the container for test input and output.
The book suggests making named constants in the global scope, but having a structure both allows me to add elements without much thought, and to use printf
, which does one function call, instead of std::cout
, which calls operator<<
many times for various inputs.
Definition at line 72 of file chapter-1.cpp.
unsigned const anonymous_namespace{chapter-1.cpp}::test_result::expected |
Definition at line 73 of file chapter-1.cpp.
unsigned const anonymous_namespace{chapter-1.cpp}::test_result::got |
Definition at line 73 of file chapter-1.cpp.