C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Solution to Exercise 4-2. More...
#include "chapter-4-undefined_bool.hpp"
#include <boost/static_assert.hpp>
#include <boost/mpl/bool.hpp>
Go to the source code of this file.
Classes | |
struct | exercise_4_2::logical_or5< E1, E2, E3, E4, E5 > |
Short-circuit logical OR evaluation for up to five boolean values. More... | |
struct | exercise_4_2::logical_or5< boost::mpl::true_, E2, E3, E4, E5 > |
Short-circuit on a true value. More... | |
struct | exercise_4_2::logical_or5< boost::mpl::false_, E2, E3, E4, E5 > |
Pop/Evaluate the second value, putting false_ as the last parameter. More... | |
struct | exercise_4_2::logical_or5< boost::mpl::false_, boost::mpl::false_, boost::mpl::false_, boost::mpl::false_, E5 > |
If everything is a simple boost::mpl::false_ we can end recursion. More... | |
Namespaces | |
namespace | exercise_4_2 |
Encapsulate solution for Exercise 4-2. | |
Solution to Exercise 4-2.
Definition in file exercise-4-2.hpp.