2 #if !BOOST_PHOENIX_IS_ITERATING
4 #ifndef BOOST_PHOENIX_OPERATOR_MEMBER_DETAIL_MEM_FUN_PTR_GEN_HPP
5 #define BOOST_PHOENIX_OPERATOR_MEMBER_DETAIL_MEM_FUN_PTR_GEN_HPP
7 #include <boost/phoenix/core/limits.hpp>
8 #include <boost/phoenix/support/iterate.hpp>
9 #include <boost/phoenix/core/expression.hpp>
11 #if !defined(BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES)
13 #include <boost/phoenix/operator/detail/preprocessed/mem_fun_ptr_gen.hpp>
17 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
18 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/mem_fun_ptr_gen_" BOOST_PHOENIX_LIMIT_STR ".hpp")
21 /*==============================================================================
22 Copyright (c) 2001-2010 Joel de Guzman
23 Copyright (c) 2010 Thomas Heller
25 Distributed under the Boost Software License, Version 1.0. (See accompanying
26 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
27 ==============================================================================*/
29 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
30 #pragma wave option(preserve: 1)
33 BOOST_PHOENIX_DEFINE_EXPRESSION_VARARG(
34 (boost)(phoenix)(mem_fun_ptr)
40 namespace boost { namespace phoenix
43 template <typename Object, typename MemPtr>
44 struct mem_fun_ptr_gen
46 mem_fun_ptr_gen(Object const& obj_, MemPtr ptr_)
51 typename phoenix::expression::mem_fun_ptr<Object, MemPtr>::type const
54 return phoenix::expression::mem_fun_ptr<Object, MemPtr>::make(obj, ptr);
57 #define BOOST_PHOENIX_ITERATION_PARAMS \
58 (3, (1, BOOST_PHOENIX_MEMBER_LIMIT, \
59 <boost/phoenix/operator/detail/mem_fun_ptr_gen.hpp>)) \
61 #include BOOST_PHOENIX_ITERATE()
68 struct make_mem_fun_ptr_gen
71 template<typename Sig>
74 template<typename This, typename Object, typename MemPtr>
75 struct result<This(Object, MemPtr)>
79 typename remove_const<typename remove_reference<Object>::type>::type
80 , typename remove_const<typename remove_reference<MemPtr>::type>::type
85 template<typename Object, typename MemPtr>
86 mem_fun_ptr_gen<Object, MemPtr> operator()(Object const & obj, MemPtr ptr) const
88 return mem_fun_ptr_gen<Object, MemPtr>(obj, ptr);
94 #if defined(__WAVE__) && defined(BOOST_PHOENIX_CREATE_PREPROCESSED_FILES)
95 #pragma wave option(output: null)
98 #endif // BOOST_PHOENIX_DONT_USE_PREPROCESSED_FILES
103 template <BOOST_PHOENIX_typename_A>
104 typename phoenix::expression::mem_fun_ptr<
109 operator()(BOOST_PHOENIX_A_const_ref_a) const
111 return phoenix::expression::mem_fun_ptr<
115 >::make(obj, ptr, BOOST_PHOENIX_a);