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) {