diff --git a/include/boost/lambda2/lambda2.hpp b/include/boost/lambda2/lambda2.hpp index 3ecce5d..d2cb4e1 100644 --- a/include/boost/lambda2/lambda2.hpp +++ b/include/boost/lambda2/lambda2.hpp @@ -16,7 +16,9 @@ namespace lambda2 namespace detail { -template> using is_lambda_expression = +template using remove_cvref_t = std::remove_cv_t>; + +template> using is_lambda_expression = std::integral_constant::value || std::is_bind_expression::value>; template using enable_unary_lambda = @@ -38,8 +40,7 @@ template using enable_binary_lambda = template> \ auto operator op( A&& a, B&& b ) \ { \ - return std::bind( std::fn<>(), std::forward(a), \ - std::forward(b) ); \ + return std::bind( std::fn<>(), std::forward(a), std::forward(b) ); \ } BOOST_LAMBDA2_BINARY_LAMBDA(+, plus)