diff options
Diffstat (limited to 'boost/hana/concept/product.hpp')
-rw-r--r-- | boost/hana/concept/product.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/boost/hana/concept/product.hpp b/boost/hana/concept/product.hpp index 1a77777b29..3ad8a70f2b 100644 --- a/boost/hana/concept/product.hpp +++ b/boost/hana/concept/product.hpp @@ -15,17 +15,19 @@ 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/first.hpp> #include <boost/hana/second.hpp> BOOST_HANA_NAMESPACE_BEGIN template <typename P> - struct Product { - using Tag = typename tag_of<P>::type; - static constexpr bool value = !is_default<first_impl<Tag>>::value && - !is_default<second_impl<Tag>>::value; - }; + struct Product + : hana::integral_constant<bool, + !is_default<first_impl<typename tag_of<P>::type>>::value && + !is_default<second_impl<typename tag_of<P>::type>>::value + > + { }; BOOST_HANA_NAMESPACE_END #endif // !BOOST_HANA_CONCEPT_PRODUCT_HPP |