diff --git a/include/boost/logic/tribool.hpp b/include/boost/logic/tribool.hpp index b4c4a01..e5eb0a4 100644 --- a/include/boost/logic/tribool.hpp +++ b/include/boost/logic/tribool.hpp @@ -131,7 +131,11 @@ class tribool * The actual stored value in this 3-state boolean, which may be false, true, * or indeterminate. */ - enum value_t { false_value, true_value, indeterminate_value } value; + enum value_t +#if !defined( BOOST_NO_CXX11_SCOPED_ENUMS ) + : unsigned char +#endif + { false_value, true_value, indeterminate_value } value; }; // Check if the given tribool has an indeterminate value. Also doubles as a