Chris@16: #if !defined(BOOST_PROTO_DONT_USE_PREPROCESSED_FILES) Chris@16: Chris@16: #include Chris@16: Chris@16: #elif !defined(BOOST_PP_IS_ITERATING) Chris@16: Chris@16: #define BOOST_PROTO_COMMON_DOMAIN2(Z, N, DATA) \ Chris@16: typedef \ Chris@16: typename common_domain2::type \ Chris@16: BOOST_PP_CAT(common, BOOST_PP_INC(N)); \ Chris@16: /**/ Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 2, line: 0, output: "preprocessed/deduce_domain_n.hpp") Chris@16: #endif Chris@16: Chris@16: /////////////////////////////////////////////////////////////////////////////// Chris@16: // deduce_domain_n.hpp Chris@16: // Definitions of common_domain[n] and deduce_domain[n] class templates. Chris@16: // Chris@16: // Copyright 2008 Eric Niebler. Distributed under the Boost Chris@16: // Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(preserve: 1) Chris@16: #endif Chris@16: Chris@16: #define BOOST_PP_ITERATION_PARAMS_1 \ Chris@16: (3, (3, BOOST_PROTO_MAX_ARITY, )) Chris@16: #include BOOST_PP_ITERATE() Chris@16: Chris@16: #if defined(__WAVE__) && defined(BOOST_PROTO_CREATE_PREPROCESSED_FILES) Chris@16: #pragma wave option(output: null) Chris@16: #endif Chris@16: Chris@16: #undef BOOST_PROTO_COMMON_DOMAIN2 Chris@16: Chris@16: #else Chris@16: Chris@16: #define N BOOST_PP_ITERATION() Chris@16: Chris@16: template Chris@16: struct BOOST_PP_CAT(common_domain, N) Chris@16: { Chris@16: typedef A0 common1; Chris@16: BOOST_PP_REPEAT_FROM_TO(1, N, BOOST_PROTO_COMMON_DOMAIN2, ~) Chris@16: typedef BOOST_PP_CAT(common, N) type; Chris@16: BOOST_PROTO_ASSERT_VALID_DOMAIN(type); Chris@16: }; Chris@16: Chris@16: template Chris@16: struct BOOST_PP_CAT(deduce_domain, N) Chris@16: : BOOST_PP_CAT(common_domain, N)< Chris@16: BOOST_PP_ENUM_BINARY_PARAMS( Chris@16: N Chris@16: , typename domain_of::type BOOST_PP_INTERCEPT Chris@16: ) Chris@16: > Chris@16: {}; Chris@16: Chris@16: #undef N Chris@16: Chris@16: #endif // BOOST_PROTO_DONT_USE_PREPROCESSED_FILES