From f74cf1789eb3e6de1dde33482a0f88ce37673fe5 Mon Sep 17 00:00:00 2001 From: Zach Laine Date: Wed, 30 Nov 2016 18:07:10 -0600 Subject: [PATCH] Add some comments and whitespace to detail/expression.hpp. --- detail/expression.hpp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/detail/expression.hpp b/detail/expression.hpp index 113b1d8..1d1e85d 100644 --- a/detail/expression.hpp +++ b/detail/expression.hpp @@ -13,6 +13,8 @@ namespace boost::proto17 { namespace detail { + // partial_decay + template struct partial_decay { using type = T; }; @@ -32,6 +34,9 @@ namespace boost::proto17 { template struct partial_decay { using type = R(*)(A..., ...); }; + + // operand_value_type_phase_1 + template < typename T, typename U = typename detail::partial_decay::type, @@ -47,6 +52,9 @@ namespace boost::proto17 { struct operand_value_type_phase_1 { using type = U; }; + + // remove_cv_ref + template struct remove_cv_ref : std::remove_cv> {}; @@ -54,6 +62,9 @@ namespace boost::proto17 { template using remove_cv_ref_t = typename remove_cv_ref::type; + + // is_hana_tuple + template struct is_hana_tuple { static bool const value = false; }; @@ -62,6 +73,9 @@ namespace boost::proto17 { struct is_hana_tuple> { static bool const value = true; }; + + // is_expr + template , typename = std::void_t<>> struct is_expr { static bool const value = false; }; @@ -78,6 +92,9 @@ namespace boost::proto17 { is_hana_tuple().elements)>>::value; }; + + // expr_ref + template