Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/phoenix/function/adapt_callable.hpp @ 101:c530137014c0
Update Boost headers (1.58.0)
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:12:49 +0100 |
parents | 2665513ce2d3 |
children |
comparison
equal
deleted
inserted
replaced
100:793467b5e61c | 101:c530137014c0 |
---|---|
11 #include <boost/phoenix/core/limits.hpp> | 11 #include <boost/phoenix/core/limits.hpp> |
12 #include <boost/phoenix/core/detail/function_eval.hpp> | 12 #include <boost/phoenix/core/detail/function_eval.hpp> |
13 #include <boost/preprocessor/repetition/repeat.hpp> | 13 #include <boost/preprocessor/repetition/repeat.hpp> |
14 | 14 |
15 #define BOOST_PHOENIX_ADAPT_CALLABLE_NULLARY(NAME, FUNC) \ | 15 #define BOOST_PHOENIX_ADAPT_CALLABLE_NULLARY(NAME, FUNC) \ |
16 inline \ | |
16 boost::phoenix::detail::expression::function_eval<FUNC>::type const \ | 17 boost::phoenix::detail::expression::function_eval<FUNC>::type const \ |
17 inline NAME() \ | 18 NAME() \ |
18 { \ | 19 { \ |
19 return boost::phoenix::detail::expression:: \ | 20 return boost::phoenix::detail::expression:: \ |
20 function_eval<FUNC>::make(FUNC()); \ | 21 function_eval<FUNC>::make(FUNC()); \ |
21 } \ | 22 } \ |
22 /**/ | 23 /**/ |
23 | 24 |
24 | 25 |
25 #define BOOST_PHOENIX_ADAPT_CALLABLE(NAME, FUNC, N) \ | 26 #define BOOST_PHOENIX_ADAPT_CALLABLE(NAME, FUNC, N) \ |
26 template <BOOST_PHOENIX_typename_A(N)> \ | 27 template <BOOST_PHOENIX_typename_A(N)> \ |
28 inline \ | |
27 typename \ | 29 typename \ |
28 boost::phoenix::detail::expression::function_eval< \ | 30 boost::phoenix::detail::expression::function_eval< \ |
29 FUNC \ | 31 FUNC \ |
30 , BOOST_PHOENIX_A(N)>::type const \ | 32 , BOOST_PHOENIX_A(N)>::type const \ |
31 inline NAME(BOOST_PHOENIX_A_const_ref_a(N)) \ | 33 NAME(BOOST_PHOENIX_A_const_ref_a(N)) \ |
32 { \ | 34 { \ |
33 return boost::phoenix::detail::expression:: \ | 35 return boost::phoenix::detail::expression:: \ |
34 function_eval<FUNC, BOOST_PHOENIX_A(N)>:: \ | 36 function_eval<FUNC, BOOST_PHOENIX_A(N)>:: \ |
35 make(FUNC(), BOOST_PHOENIX_a(N)); \ | 37 make(FUNC(), BOOST_PHOENIX_a(N)); \ |
36 } \ | 38 } \ |