14#include <boost/static_assert.hpp>
15#include <boost/mpl/bool.hpp>
50 typename E3 = boost::mpl::false_,
51 typename E4 = boost::mpl::false_,
52 typename E5 = boost::mpl::false_>
54 :
logical_or5<boost::mpl::bool_<E1::value>, E2, E3, E4, E5> { };
57template <
typename E2,
typename E3,
typename E4,
typename E5>
60 static bool const value =
true;
63template <
typename E2,
typename E3,
typename E4,
typename E5>
66 boost::mpl::bool_<E2::value>, E2, E3, E4, boost::mpl::false_> { };
77 static bool const value = E5::value;
Define some booleans that don't compile on either true or false.
Exists to inject functionality into the Boost namespace.
Provide utilities availble to all Chapter 4 solutions.
Encapsulate solution for Exercise 4-2.
Short-circuit logical OR evaluation for up to five boolean values.