1 #if !defined(BOOST_PROTO_DONT_USE_PREPROCESSED_FILES)
3 #include <boost/proto/detail/preprocessed/make_expr.hpp>
5 #elif !defined(BOOST_PP_IS_ITERATING)
7 #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
8 #pragma wave option(preserve: 2, line: 0, output: "preprocessed/make_expr.hpp")
11 ///////////////////////////////////////////////////////////////////////////////
12 /// \file make_expr.hpp
13 /// Contains overloads of make_expr() free function.
15 // Copyright 2008 Eric Niebler. Distributed under the Boost
16 // Software License, Version 1.0. (See accompanying file
17 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
19 #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
20 #pragma wave option(preserve: 1)
23 #define BOOST_PP_ITERATION_PARAMS_1 \
24 (3, (2, BOOST_PROTO_MAX_ARITY, <boost/proto/detail/make_expr.hpp>))
25 #include BOOST_PP_ITERATE()
27 #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES)
28 #pragma wave option(output: null)
31 #else // BOOST_PP_IS_ITERATING
33 #define N BOOST_PP_ITERATION()
37 template<typename Tag BOOST_PP_ENUM_TRAILING_PARAMS(N, typename A)>
39 typename lazy_disable_if<
41 , result_of::make_expr<
43 BOOST_PP_ENUM_TRAILING_PARAMS(N, const A)
46 make_expr(BOOST_PP_ENUM_BINARY_PARAMS(N, const A, &a))
48 return proto::detail::make_expr_<
51 BOOST_PP_ENUM_TRAILING_PARAMS(N, const A)
52 >()(BOOST_PP_ENUM_PARAMS(N, a));
57 template<typename Tag, typename Domain BOOST_PP_ENUM_TRAILING_PARAMS(N, typename C)>
59 typename result_of::make_expr<
62 BOOST_PP_ENUM_TRAILING_PARAMS(N, const C)
64 make_expr(BOOST_PP_ENUM_BINARY_PARAMS(N, const C, &c))
66 return proto::detail::make_expr_<
69 BOOST_PP_ENUM_TRAILING_PARAMS(N, const C)
70 >()(BOOST_PP_ENUM_PARAMS(N, c));