C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Short-circuit logical OR evaluation of two boolean values. More...
#include <exercise-4-1.hpp>
Short-circuit logical OR evaluation of two boolean values.
We're assuming that E1 has a boolean "value" member, but that it probably isn't simply a boost::mpl::bool_ type. Since the specializations operate on bool_, we extract the value here, and pass it down throw a bool_.
E1 | An expression that must at least have a boolean "value" member. |
E2 | An expression that must at least have a boolean "value" member. |
Definition at line 46 of file exercise-4-1.hpp.