diff options
Diffstat (limited to 'boost/hana/concept/functor.hpp')
-rw-r--r-- | boost/hana/concept/functor.hpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/boost/hana/concept/functor.hpp b/boost/hana/concept/functor.hpp index 308abae56f..1a84126f6f 100644 --- a/boost/hana/concept/functor.hpp +++ b/boost/hana/concept/functor.hpp @@ -12,20 +12,22 @@ Distributed under the Boost Software License, Version 1.0. #include <boost/hana/fwd/concept/functor.hpp> -#include <boost/hana/config.hpp> #include <boost/hana/adjust_if.hpp> +#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/transform.hpp> BOOST_HANA_NAMESPACE_BEGIN template <typename F> - struct Functor { - using Tag = typename tag_of<F>::type; - static constexpr bool value = !is_default<transform_impl<Tag>>::value || - !is_default<adjust_if_impl<Tag>>::value; - }; + struct Functor + : hana::integral_constant<bool, + !is_default<transform_impl<typename tag_of<F>::type>>::value || + !is_default<adjust_if_impl<typename tag_of<F>::type>>::value + > + { }; BOOST_HANA_NAMESPACE_END #endif // !BOOST_HANA_CONCEPT_FUNCTOR_HPP |