Add constexpr to conversion operator for bool integral constants

This commit is contained in:
Paul
2013-12-29 05:46:32 -05:00
committed by Ahmed Charles
parent 1f482c4fa1
commit ed58434c88

View File

@@ -26,7 +26,7 @@ template< bool C_ > struct bool_
typedef integral_c_tag tag;
typedef bool_ type;
typedef bool value_type;
operator bool() const { return this->value; }
BOOST_CONSTEXPR operator bool() const { return this->value; }
};
#if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)