C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches

Implement my versions of MPL boolean operations with many arguments. More...

Files

file  exercise-4-2.hpp
 Solution to Exercise 4-2.
 

Namespaces

namespace  test_4_2
 Tests functionality from Exercise 4-2.
 
namespace  exercise_4_2
 Encapsulate solution for Exercise 4-2.
 

Detailed Description

Implement my versions of MPL boolean operations with many arguments.

4-2. Extend the implementation of logical_or and logical_and metafunctions
     from exercise 4-1 to accept up to five arguments.
Todo:
Same logic holds true for logical_and, but with false_ instead of true_. Go back and write logical_and some time.