diff options
Diffstat (limited to 'boost/hana/concept/hashable.hpp')
-rw-r--r-- | boost/hana/concept/hashable.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/boost/hana/concept/hashable.hpp b/boost/hana/concept/hashable.hpp index 9fc282fb71..b5a0ca0feb 100644 --- a/boost/hana/concept/hashable.hpp +++ b/boost/hana/concept/hashable.hpp @@ -16,15 +16,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/hash.hpp> BOOST_HANA_NAMESPACE_BEGIN template <typename T> - struct Hashable { - using Tag = typename tag_of<T>::type; - static constexpr bool value = !is_default<hash_impl<Tag>>::value; - }; + struct Hashable + : hana::integral_constant<bool, + !is_default<hash_impl<typename tag_of<T>::type>>::value + > + { }; BOOST_HANA_NAMESPACE_END #endif // !BOOST_HANA_CONCEPT_HASHABLE_HPP |