1 /*=============================================================================
2 Copyright (c) 2016 Kohei Takahashi
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
8 #ifndef PHOENIX_BIND_BIND_FUNCTION_OBJECT_HPP
9 #define PHOENIX_BIND_BIND_FUNCTION_OBJECT_HPP
11 #include <boost/phoenix/core/limits.hpp>
13 #if defined(BOOST_PHOENIX_NO_VARIADIC_BIND)
14 # include <boost/phoenix/bind/detail/cpp03/bind_function_object.hpp>
17 #include <boost/phoenix/core/expression.hpp>
18 #include <boost/phoenix/core/detail/function_eval.hpp>
20 namespace boost { namespace phoenix
23 inline typename detail::expression::function_eval<F>::type const
26 return detail::expression::function_eval<F>::make(f);
29 template <typename F, typename... A>
30 inline typename detail::expression::function_eval<F, A...>::type const
31 bind(F f, A const&... a)
33 return detail::expression::function_eval<F, A...>::make(f, a...);
35 }} // namespace boost::phoenix