Add a definition for nvp_bool

This commit is contained in:
Glen Fernandes
2019-09-10 08:04:40 -04:00
parent 26497003f2
commit f52dec58c2
3 changed files with 7 additions and 8 deletions

View File

@@ -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>