member_10.hpp 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494
  1. /*==============================================================================
  2. Copyright (c) 2005-2010 Joel de Guzman
  3. Copyright (c) 2010 Thomas Heller
  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. ==============================================================================*/
  7. namespace boost { namespace phoenix
  8. {
  9. namespace expression { template <typename Lhs, typename Rhs> struct mem_ptr : expr<proto::tag:: mem_ptr, Lhs, Rhs> {}; typedef proto::functional::make_expr<proto::tag:: mem_ptr> make_mem_ptr; } namespace rule { struct mem_ptr : expression:: mem_ptr<meta_grammar, meta_grammar> {}; } template <typename Dummy> struct meta_grammar::case_<proto::tag:: mem_ptr, Dummy> : enable_rule<rule:: mem_ptr, Dummy> {};
  10. template<>
  11. struct phoenix_generator::case_<proto::tag::mem_ptr>
  12. : proto::or_<
  13. proto::when<
  14. proto::and_<
  15. proto::mem_ptr<meta_grammar, proto::terminal<proto::_> >
  16. , proto::if_<is_member_function_pointer<boost::remove_reference<proto::call<proto::_value(proto::_right)> > >()>
  17. >
  18. , proto::call<detail::make_mem_fun_ptr_gen(proto::_left, proto::call<proto::_value(proto::_right)>)>
  19. >
  20. , proto::otherwise<
  21. proto::call<proto::pod_generator<actor>(proto::_)>
  22. >
  23. >
  24. {};
  25. namespace result_of
  26. {
  27. template <
  28. typename Context
  29. , typename A0 = void , typename A1 = void , typename A2 = void , typename A3 = void , typename A4 = void , typename A5 = void , typename A6 = void , typename A7 = void , typename A8 = void , typename A9 = void
  30. , typename Dummy = void
  31. >
  32. struct mem_fun_ptr_eval;
  33. template <typename Context, typename A0 , typename A1>
  34. struct mem_fun_ptr_eval<Context, A0 , A1>
  35. {
  36. typedef typename evaluator::impl< A0 , Context , proto::empty_env >::result_type child0; typedef typename evaluator::impl< A1 , Context , proto::empty_env >::result_type child1;
  37. typedef
  38. typename boost::result_of<
  39. child1(
  40. child1
  41. )
  42. >::type
  43. type;
  44. };
  45. template <typename Context, typename A0 , typename A1 , typename A2>
  46. struct mem_fun_ptr_eval<Context, A0 , A1 , A2>
  47. {
  48. typedef typename evaluator::impl< A0 , Context , proto::empty_env >::result_type child0; typedef typename evaluator::impl< A1 , Context , proto::empty_env >::result_type child1; typedef typename evaluator::impl< A2 , Context , proto::empty_env >::result_type child2;
  49. typedef
  50. typename boost::result_of<
  51. child1(
  52. child1 , child2
  53. )
  54. >::type
  55. type;
  56. };
  57. template <typename Context, typename A0 , typename A1 , typename A2 , typename A3>
  58. struct mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3>
  59. {
  60. typedef typename evaluator::impl< A0 , Context , proto::empty_env >::result_type child0; typedef typename evaluator::impl< A1 , Context , proto::empty_env >::result_type child1; typedef typename evaluator::impl< A2 , Context , proto::empty_env >::result_type child2; typedef typename evaluator::impl< A3 , Context , proto::empty_env >::result_type child3;
  61. typedef
  62. typename boost::result_of<
  63. child1(
  64. child1 , child2 , child3
  65. )
  66. >::type
  67. type;
  68. };
  69. template <typename Context, typename A0 , typename A1 , typename A2 , typename A3 , typename A4>
  70. struct mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4>
  71. {
  72. typedef typename evaluator::impl< A0 , Context , proto::empty_env >::result_type child0; typedef typename evaluator::impl< A1 , Context , proto::empty_env >::result_type child1; typedef typename evaluator::impl< A2 , Context , proto::empty_env >::result_type child2; typedef typename evaluator::impl< A3 , Context , proto::empty_env >::result_type child3; typedef typename evaluator::impl< A4 , Context , proto::empty_env >::result_type child4;
  73. typedef
  74. typename boost::result_of<
  75. child1(
  76. child1 , child2 , child3 , child4
  77. )
  78. >::type
  79. type;
  80. };
  81. template <typename Context, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5>
  82. struct mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5>
  83. {
  84. typedef typename evaluator::impl< A0 , Context , proto::empty_env >::result_type child0; typedef typename evaluator::impl< A1 , Context , proto::empty_env >::result_type child1; typedef typename evaluator::impl< A2 , Context , proto::empty_env >::result_type child2; typedef typename evaluator::impl< A3 , Context , proto::empty_env >::result_type child3; typedef typename evaluator::impl< A4 , Context , proto::empty_env >::result_type child4; typedef typename evaluator::impl< A5 , Context , proto::empty_env >::result_type child5;
  85. typedef
  86. typename boost::result_of<
  87. child1(
  88. child1 , child2 , child3 , child4 , child5
  89. )
  90. >::type
  91. type;
  92. };
  93. template <typename Context, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6>
  94. struct mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6>
  95. {
  96. typedef typename evaluator::impl< A0 , Context , proto::empty_env >::result_type child0; typedef typename evaluator::impl< A1 , Context , proto::empty_env >::result_type child1; typedef typename evaluator::impl< A2 , Context , proto::empty_env >::result_type child2; typedef typename evaluator::impl< A3 , Context , proto::empty_env >::result_type child3; typedef typename evaluator::impl< A4 , Context , proto::empty_env >::result_type child4; typedef typename evaluator::impl< A5 , Context , proto::empty_env >::result_type child5; typedef typename evaluator::impl< A6 , Context , proto::empty_env >::result_type child6;
  97. typedef
  98. typename boost::result_of<
  99. child1(
  100. child1 , child2 , child3 , child4 , child5 , child6
  101. )
  102. >::type
  103. type;
  104. };
  105. template <typename Context, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7>
  106. struct mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7>
  107. {
  108. typedef typename evaluator::impl< A0 , Context , proto::empty_env >::result_type child0; typedef typename evaluator::impl< A1 , Context , proto::empty_env >::result_type child1; typedef typename evaluator::impl< A2 , Context , proto::empty_env >::result_type child2; typedef typename evaluator::impl< A3 , Context , proto::empty_env >::result_type child3; typedef typename evaluator::impl< A4 , Context , proto::empty_env >::result_type child4; typedef typename evaluator::impl< A5 , Context , proto::empty_env >::result_type child5; typedef typename evaluator::impl< A6 , Context , proto::empty_env >::result_type child6; typedef typename evaluator::impl< A7 , Context , proto::empty_env >::result_type child7;
  109. typedef
  110. typename boost::result_of<
  111. child1(
  112. child1 , child2 , child3 , child4 , child5 , child6 , child7
  113. )
  114. >::type
  115. type;
  116. };
  117. template <typename Context, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8>
  118. struct mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8>
  119. {
  120. typedef typename evaluator::impl< A0 , Context , proto::empty_env >::result_type child0; typedef typename evaluator::impl< A1 , Context , proto::empty_env >::result_type child1; typedef typename evaluator::impl< A2 , Context , proto::empty_env >::result_type child2; typedef typename evaluator::impl< A3 , Context , proto::empty_env >::result_type child3; typedef typename evaluator::impl< A4 , Context , proto::empty_env >::result_type child4; typedef typename evaluator::impl< A5 , Context , proto::empty_env >::result_type child5; typedef typename evaluator::impl< A6 , Context , proto::empty_env >::result_type child6; typedef typename evaluator::impl< A7 , Context , proto::empty_env >::result_type child7; typedef typename evaluator::impl< A8 , Context , proto::empty_env >::result_type child8;
  121. typedef
  122. typename boost::result_of<
  123. child1(
  124. child1 , child2 , child3 , child4 , child5 , child6 , child7 , child8
  125. )
  126. >::type
  127. type;
  128. };
  129. template <typename Context, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9>
  130. struct mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9>
  131. {
  132. typedef typename evaluator::impl< A0 , Context , proto::empty_env >::result_type child0; typedef typename evaluator::impl< A1 , Context , proto::empty_env >::result_type child1; typedef typename evaluator::impl< A2 , Context , proto::empty_env >::result_type child2; typedef typename evaluator::impl< A3 , Context , proto::empty_env >::result_type child3; typedef typename evaluator::impl< A4 , Context , proto::empty_env >::result_type child4; typedef typename evaluator::impl< A5 , Context , proto::empty_env >::result_type child5; typedef typename evaluator::impl< A6 , Context , proto::empty_env >::result_type child6; typedef typename evaluator::impl< A7 , Context , proto::empty_env >::result_type child7; typedef typename evaluator::impl< A8 , Context , proto::empty_env >::result_type child8; typedef typename evaluator::impl< A9 , Context , proto::empty_env >::result_type child9;
  133. typedef
  134. typename boost::result_of<
  135. child1(
  136. child1 , child2 , child3 , child4 , child5 , child6 , child7 , child8 , child9
  137. )
  138. >::type
  139. type;
  140. };
  141. }
  142. struct mem_fun_ptr_eval
  143. {
  144. template<typename Sig>
  145. struct result;
  146. template <typename This, typename A0 , typename A1, typename Context>
  147. struct result<This(A0 , A1, Context)>
  148. : result<This(A0 const& , A1 const&, Context)>
  149. {};
  150. template <typename This, typename A0 , typename A1, typename Context>
  151. struct result<This(A0 & , A1 &, Context)>
  152. : result_of::mem_fun_ptr_eval<Context, A0 , A1>
  153. {};
  154. template <typename A0 , typename A1, typename Context>
  155. typename result_of::mem_fun_ptr_eval<Context, A0 , A1>::type
  156. operator()(
  157. A0 const& a0 , A1 const& a1
  158. , Context const & ctx
  159. ) const
  160. {
  161. return
  162. (
  163. get_pointer(boost::phoenix::eval(a0, ctx))
  164. ->*boost::phoenix::eval(a1, ctx)
  165. )(
  166. );
  167. }
  168. template <typename This, typename A0 , typename A1 , typename A2, typename Context>
  169. struct result<This(A0 , A1 , A2, Context)>
  170. : result<This(A0 const& , A1 const& , A2 const&, Context)>
  171. {};
  172. template <typename This, typename A0 , typename A1 , typename A2, typename Context>
  173. struct result<This(A0 & , A1 & , A2 &, Context)>
  174. : result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2>
  175. {};
  176. template <typename A0 , typename A1 , typename A2, typename Context>
  177. typename result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2>::type
  178. operator()(
  179. A0 const& a0 , A1 const& a1 , A2 const& a2
  180. , Context const & ctx
  181. ) const
  182. {
  183. return
  184. (
  185. get_pointer(boost::phoenix::eval(a0, ctx))
  186. ->*boost::phoenix::eval(a1, ctx)
  187. )(
  188. boost::phoenix::eval(a2, ctx)
  189. );
  190. }
  191. template <typename This, typename A0 , typename A1 , typename A2 , typename A3, typename Context>
  192. struct result<This(A0 , A1 , A2 , A3, Context)>
  193. : result<This(A0 const& , A1 const& , A2 const& , A3 const&, Context)>
  194. {};
  195. template <typename This, typename A0 , typename A1 , typename A2 , typename A3, typename Context>
  196. struct result<This(A0 & , A1 & , A2 & , A3 &, Context)>
  197. : result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3>
  198. {};
  199. template <typename A0 , typename A1 , typename A2 , typename A3, typename Context>
  200. typename result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3>::type
  201. operator()(
  202. A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3
  203. , Context const & ctx
  204. ) const
  205. {
  206. return
  207. (
  208. get_pointer(boost::phoenix::eval(a0, ctx))
  209. ->*boost::phoenix::eval(a1, ctx)
  210. )(
  211. boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx)
  212. );
  213. }
  214. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4, typename Context>
  215. struct result<This(A0 , A1 , A2 , A3 , A4, Context)>
  216. : result<This(A0 const& , A1 const& , A2 const& , A3 const& , A4 const&, Context)>
  217. {};
  218. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4, typename Context>
  219. struct result<This(A0 & , A1 & , A2 & , A3 & , A4 &, Context)>
  220. : result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4>
  221. {};
  222. template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4, typename Context>
  223. typename result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4>::type
  224. operator()(
  225. A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4
  226. , Context const & ctx
  227. ) const
  228. {
  229. return
  230. (
  231. get_pointer(boost::phoenix::eval(a0, ctx))
  232. ->*boost::phoenix::eval(a1, ctx)
  233. )(
  234. boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx)
  235. );
  236. }
  237. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5, typename Context>
  238. struct result<This(A0 , A1 , A2 , A3 , A4 , A5, Context)>
  239. : result<This(A0 const& , A1 const& , A2 const& , A3 const& , A4 const& , A5 const&, Context)>
  240. {};
  241. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5, typename Context>
  242. struct result<This(A0 & , A1 & , A2 & , A3 & , A4 & , A5 &, Context)>
  243. : result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5>
  244. {};
  245. template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5, typename Context>
  246. typename result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5>::type
  247. operator()(
  248. A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5
  249. , Context const & ctx
  250. ) const
  251. {
  252. return
  253. (
  254. get_pointer(boost::phoenix::eval(a0, ctx))
  255. ->*boost::phoenix::eval(a1, ctx)
  256. )(
  257. boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx)
  258. );
  259. }
  260. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6, typename Context>
  261. struct result<This(A0 , A1 , A2 , A3 , A4 , A5 , A6, Context)>
  262. : result<This(A0 const& , A1 const& , A2 const& , A3 const& , A4 const& , A5 const& , A6 const&, Context)>
  263. {};
  264. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6, typename Context>
  265. struct result<This(A0 & , A1 & , A2 & , A3 & , A4 & , A5 & , A6 &, Context)>
  266. : result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6>
  267. {};
  268. template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6, typename Context>
  269. typename result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6>::type
  270. operator()(
  271. A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6
  272. , Context const & ctx
  273. ) const
  274. {
  275. return
  276. (
  277. get_pointer(boost::phoenix::eval(a0, ctx))
  278. ->*boost::phoenix::eval(a1, ctx)
  279. )(
  280. boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx) , boost::phoenix::eval(a6, ctx)
  281. );
  282. }
  283. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7, typename Context>
  284. struct result<This(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7, Context)>
  285. : result<This(A0 const& , A1 const& , A2 const& , A3 const& , A4 const& , A5 const& , A6 const& , A7 const&, Context)>
  286. {};
  287. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7, typename Context>
  288. struct result<This(A0 & , A1 & , A2 & , A3 & , A4 & , A5 & , A6 & , A7 &, Context)>
  289. : result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7>
  290. {};
  291. template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7, typename Context>
  292. typename result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7>::type
  293. operator()(
  294. A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7
  295. , Context const & ctx
  296. ) const
  297. {
  298. return
  299. (
  300. get_pointer(boost::phoenix::eval(a0, ctx))
  301. ->*boost::phoenix::eval(a1, ctx)
  302. )(
  303. boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx) , boost::phoenix::eval(a6, ctx) , boost::phoenix::eval(a7, ctx)
  304. );
  305. }
  306. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8, typename Context>
  307. struct result<This(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8, Context)>
  308. : result<This(A0 const& , A1 const& , A2 const& , A3 const& , A4 const& , A5 const& , A6 const& , A7 const& , A8 const&, Context)>
  309. {};
  310. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8, typename Context>
  311. struct result<This(A0 & , A1 & , A2 & , A3 & , A4 & , A5 & , A6 & , A7 & , A8 &, Context)>
  312. : result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8>
  313. {};
  314. template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8, typename Context>
  315. typename result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8>::type
  316. operator()(
  317. A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 , A8 const& a8
  318. , Context const & ctx
  319. ) const
  320. {
  321. return
  322. (
  323. get_pointer(boost::phoenix::eval(a0, ctx))
  324. ->*boost::phoenix::eval(a1, ctx)
  325. )(
  326. boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx) , boost::phoenix::eval(a6, ctx) , boost::phoenix::eval(a7, ctx) , boost::phoenix::eval(a8, ctx)
  327. );
  328. }
  329. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9, typename Context>
  330. struct result<This(A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9, Context)>
  331. : result<This(A0 const& , A1 const& , A2 const& , A3 const& , A4 const& , A5 const& , A6 const& , A7 const& , A8 const& , A9 const&, Context)>
  332. {};
  333. template <typename This, typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9, typename Context>
  334. struct result<This(A0 & , A1 & , A2 & , A3 & , A4 & , A5 & , A6 & , A7 & , A8 & , A9 &, Context)>
  335. : result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9>
  336. {};
  337. template <typename A0 , typename A1 , typename A2 , typename A3 , typename A4 , typename A5 , typename A6 , typename A7 , typename A8 , typename A9, typename Context>
  338. typename result_of::mem_fun_ptr_eval<Context, A0 , A1 , A2 , A3 , A4 , A5 , A6 , A7 , A8 , A9>::type
  339. operator()(
  340. A0 const& a0 , A1 const& a1 , A2 const& a2 , A3 const& a3 , A4 const& a4 , A5 const& a5 , A6 const& a6 , A7 const& a7 , A8 const& a8 , A9 const& a9
  341. , Context const & ctx
  342. ) const
  343. {
  344. return
  345. (
  346. get_pointer(boost::phoenix::eval(a0, ctx))
  347. ->*boost::phoenix::eval(a1, ctx)
  348. )(
  349. boost::phoenix::eval(a2, ctx) , boost::phoenix::eval(a3, ctx) , boost::phoenix::eval(a4, ctx) , boost::phoenix::eval(a5, ctx) , boost::phoenix::eval(a6, ctx) , boost::phoenix::eval(a7, ctx) , boost::phoenix::eval(a8, ctx) , boost::phoenix::eval(a9, ctx)
  350. );
  351. }
  352. };
  353. template <typename Dummy>
  354. struct default_actions::when<rule::mem_fun_ptr, Dummy>
  355. : call<mem_fun_ptr_eval>
  356. {};
  357. }}