summaryrefslogtreecommitdiff
path: root/boost/hana/concept/comparable.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hana/concept/comparable.hpp')
-rw-r--r--boost/hana/concept/comparable.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/boost/hana/concept/comparable.hpp b/boost/hana/concept/comparable.hpp
index a38e5c6747..96c28be7e9 100644
--- a/boost/hana/concept/comparable.hpp
+++ b/boost/hana/concept/comparable.hpp
@@ -15,15 +15,18 @@ 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/equal.hpp>
BOOST_HANA_NAMESPACE_BEGIN
template <typename T>
- struct Comparable {
- using Tag = typename tag_of<T>::type;
- static constexpr bool value = !is_default<equal_impl<Tag, Tag>>::value;
- };
+ struct Comparable
+ : hana::integral_constant<bool,
+ !is_default<equal_impl<typename tag_of<T>::type,
+ typename tag_of<T>::type>>::value
+ >
+ { };
BOOST_HANA_NAMESPACE_END
#endif // !BOOST_HANA_CONCEPT_COMPARABLE_HPP