mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-02 06:15:23 +02:00
Add constexpr to conversion operator for integral constants
This commit is contained in:
@@ -77,7 +77,7 @@ struct AUX_WRAPPER_NAME
|
|||||||
// functions that return objects of both arithmetic ('int', 'long',
|
// functions that return objects of both arithmetic ('int', 'long',
|
||||||
// 'double', etc.) and wrapped integral types (for an example, see
|
// 'double', etc.) and wrapped integral types (for an example, see
|
||||||
// "mpl/example/power.cpp")
|
// "mpl/example/power.cpp")
|
||||||
operator AUX_WRAPPER_VALUE_TYPE() const { return static_cast<AUX_WRAPPER_VALUE_TYPE>(this->value); }
|
BOOST_CONSTEXPR operator AUX_WRAPPER_VALUE_TYPE() const { return static_cast<AUX_WRAPPER_VALUE_TYPE>(this->value); }
|
||||||
};
|
};
|
||||||
|
|
||||||
#if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)
|
#if !defined(BOOST_NO_INCLASS_MEMBER_INITIALIZATION)
|
||||||
|
Reference in New Issue
Block a user