diff options
Diffstat (limited to 'boost/hana/concept/constant.hpp')
-rw-r--r-- | boost/hana/concept/constant.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/boost/hana/concept/constant.hpp b/boost/hana/concept/constant.hpp index 1c85a20739..08e5db248f 100644 --- a/boost/hana/concept/constant.hpp +++ b/boost/hana/concept/constant.hpp @@ -15,15 +15,17 @@ Distributed under the Boost Software License, Version 1.0. #include <boost/hana/config.hpp> #include <boost/hana/core/default.hpp> #include <boost/hana/core/tag_of.hpp> +#include <boost/hana/detail/integral_constant.hpp> #include <boost/hana/value.hpp> BOOST_HANA_NAMESPACE_BEGIN template <typename C> - struct Constant { - using Tag = typename tag_of<C>::type; - static constexpr bool value = !is_default<value_impl<Tag>>::value; - }; + struct Constant + : hana::integral_constant<bool, + !is_default<value_impl<typename tag_of<C>::type>>::value + > + { }; BOOST_HANA_NAMESPACE_END #endif // !BOOST_HANA_CONCEPT_CONSTANT_HPP |