summaryrefslogtreecommitdiff
path: root/boost/hana/concept/orderable.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/hana/concept/orderable.hpp')
-rw-r--r--boost/hana/concept/orderable.hpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/boost/hana/concept/orderable.hpp b/boost/hana/concept/orderable.hpp
index 5461332cd4..1e9303d204 100644
--- a/boost/hana/concept/orderable.hpp
+++ b/boost/hana/concept/orderable.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/less.hpp>
BOOST_HANA_NAMESPACE_BEGIN
template <typename Ord>
- struct Orderable {
- using Tag = typename tag_of<Ord>::type;
- static constexpr bool value = !is_default<less_impl<Tag, Tag>>::value;
- };
+ struct Orderable
+ : hana::integral_constant<bool,
+ !is_default<less_impl<typename tag_of<Ord>::type,
+ typename tag_of<Ord>::type>>::value
+ >
+ { };
BOOST_HANA_NAMESPACE_END
#endif // !BOOST_HANA_CONCEPT_ORDERABLE_HPP