1 /*=============================================================================
2 Copyright (c) 2005-2007 Dan Marsden
3 Copyright (c) 2005-2007 Joel de Guzman
5 Distributed under the Boost Software License, Version 1.0. (See accompanying
6 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
7 ==============================================================================*/
8 #ifndef BOOST_PP_IS_ITERATING
9 #ifndef PHOENIX_OPERATOR_DETAIL_MEM_FUN_PTR_RETURN_HPP
10 #define PHOENIX_OPERATOR_DETAIL_MEM_FUN_PTR_RETURN_HPP
12 #include <boost/spirit/home/phoenix/core/limits.hpp>
14 #include <boost/preprocessor/repetition/enum_params.hpp>
15 #include <boost/preprocessor/iteration/iterate.hpp>
17 namespace boost { namespace phoenix {
20 template<typename MemFunPtr>
21 struct mem_fun_ptr_return;
23 template<typename Ret, typename Class>
24 struct mem_fun_ptr_return<Ret (Class::*)()>
29 template<typename Ret, typename Class>
30 struct mem_fun_ptr_return<Ret (Class::*)() const>
35 #define BOOST_PP_ITERATION_PARAMS_1 \
36 (3, (1, PHOENIX_MEMBER_LIMIT, "boost/spirit/home/phoenix/operator/detail/mem_fun_ptr_return.hpp"))
38 #include BOOST_PP_ITERATE()
47 #define PHOENIX_ITERATION BOOST_PP_ITERATION()
49 template<typename Ret, typename Class,
50 BOOST_PP_ENUM_PARAMS(PHOENIX_ITERATION, typename T)>
51 struct mem_fun_ptr_return<Ret (Class::*)(BOOST_PP_ENUM_PARAMS(PHOENIX_ITERATION, T))>
56 template<typename Ret, typename Class,
57 BOOST_PP_ENUM_PARAMS(PHOENIX_ITERATION, typename T)>
58 struct mem_fun_ptr_return<Ret (Class::*)(BOOST_PP_ENUM_PARAMS(PHOENIX_ITERATION, T)) const>
63 #undef PHOENIX_ITERATION
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams