mirror of
https://github.com/boostorg/core.git
synced 2025-11-29 22:00:17 +01:00
Add a definition for nvp_bool
This commit is contained in:
@@ -19,7 +19,7 @@ struct nvp_bool {
|
||||
typedef bool value_type;
|
||||
typedef nvp_bool type;
|
||||
|
||||
BOOST_STATIC_CONSTANT(bool, value = V);
|
||||
BOOST_STATIC_CONSTEXPR bool value = V;
|
||||
|
||||
BOOST_CONSTEXPR operator bool() const BOOST_NOEXCEPT {
|
||||
return V;
|
||||
@@ -30,6 +30,9 @@ struct nvp_bool {
|
||||
}
|
||||
};
|
||||
|
||||
template<bool V>
|
||||
BOOST_CONSTEXPR_OR_CONST bool nvp_bool<V>::value;
|
||||
|
||||
} /* detail */
|
||||
|
||||
template<class T>
|
||||
|
||||
Reference in New Issue
Block a user