From 21f9c361a2188afe9bc2aa4cd556e22ea62da318 Mon Sep 17 00:00:00 2001 From: John Fletcher Date: Wed, 24 Dec 2014 22:44:27 +0000 Subject: [PATCH] Add lazy_enable_if to zero argument code. --- include/boost/phoenix/bind/bind_member_function.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/include/boost/phoenix/bind/bind_member_function.hpp b/include/boost/phoenix/bind/bind_member_function.hpp index edc10dc..36cfeec 100644 --- a/include/boost/phoenix/bind/bind_member_function.hpp +++ b/include/boost/phoenix/bind/bind_member_function.hpp @@ -1,7 +1,8 @@ /*============================================================================= Copyright (c) 2001-2007 Joel de Guzman + Copyright (c) 2014 John Fletcher - Distributed under the Boost Software License, Version 1.0. (See accompanying + Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ @@ -10,6 +11,7 @@ #ifndef PHOENIX_BIND_BIND_MEMBER_FUNCTION_HPP #define PHOENIX_BIND_BIND_MEMBER_FUNCTION_HPP +#include #include #include #include @@ -20,9 +22,11 @@ namespace boost { namespace phoenix template inline + typename boost::lazy_enable_if< + boost::is_member_function_pointer, typename detail::expression::function_eval< detail::member_function_ptr<0, RT, RT(ClassT::*)()> - , ClassA + , ClassA > >::type const bind(RT(ClassT::*f)(), ClassA const& obj) { @@ -36,9 +40,11 @@ namespace boost { namespace phoenix template inline + typename boost::lazy_enable_if< + boost::is_member_function_pointer, typename detail::expression::function_eval< detail::member_function_ptr<0, RT, RT(ClassT::*)() const> - , ClassA + , ClassA > >::type const bind(RT(ClassT::*f)() const, ClassA const& obj) {