C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Print data-types using a home-grown solution. More...
Files | |
file | c++20/exercise-2-4.hpp |
Solution to Exercise 2-4 (C++20). | |
file | exercise-2-4.hpp |
Solution to Exercise 2-4. | |
Namespaces | |
namespace | exercise_2_4 |
Encapsulate solution for Exercise 2-4. | |
namespace | exercise_2_4::cpp20 |
Encapsulate solution for Exercise 2-4 (C++20). | |
Functions | |
static void | anonymous_namespace{chapter-2.cpp}::test_exercise_2_4 () |
Tests for Exercise 2-4. | |
Print data-types using a home-grown solution.
2-4. Write an alternative solution for exercise 2-3 that does not use the Type Traits library. Compare the solutions.
(Oops, turns out this was the obvious one for me vs. the 2-3 solution...)
|
static |
Tests for Exercise 2-4.
Definition at line 169 of file chapter-2.cpp.