C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Add multiplication and division that honors units of measurement. More...
Files | |
file | exercise-3-5.hpp |
Solution to Exercise 3-5. | |
Namespaces | |
namespace | exercise_3_5 |
Encapsulate solution for Exercise 3-5. | |
Functions | |
static void | anonymous_namespace{chapter-3.cpp}::test_exercise_3_5 () |
Tests for Exercise 3-5. | |
Add multiplication and division that honors units of measurement.
3-5. There's still a problem with the dimensional analysis code in section 3.1. Hint: What happens when you do: f = f + m * a; Repair this example using techniques shown in this chapter.
|
static |
Tests for Exercise 3-5.
Definition at line 112 of file chapter-3.cpp.