C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Implement my own versions of Boost MPL boolean operations. More...
Files | |
file | exercise-4-1.hpp |
Solution to Exercise 4-1. | |
Namespaces | |
namespace | test_4_1 |
Tests functionality from Exercise 4-1. | |
namespace | exercise_4_1 |
Encapsulate solution for Exercise 4-1. | |
Implement my own versions of Boost MPL boolean operations.
4-1. Implement binary metafunctions called logical_or and logical_and that model the behavior of mpl::or_ and mpl::and_, correspondingly. Use tests from exercise 4-0 to verify your implementation.