mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-02 14:24:30 +02:00
Add constexpr to conversion operator for bool integral constants
This commit is contained in:
@@ -26,7 +26,7 @@ template< bool C_ > struct bool_
|
|||||||
typedef integral_c_tag tag;
|
typedef integral_c_tag tag;
|
||||||
typedef bool_ type;
|
typedef bool_ type;
|
||||||
typedef bool value_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)
|
#if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)
|
||||||
|
Reference in New Issue
Block a user