1 // Copyright (C) 2003, Fernando Luis Cacciola Carballal.
\r
2 // Copyright (C) 2007, Tobias Schwinger.
\r
4 // Use, modification, and distribution is subject to the Boost Software
\r
5 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
\r
6 // http://www.boost.org/LICENSE_1_0.txt)
\r
8 // See http://www.boost.org/lib/optional for documentation.
\r
10 // You are welcome to contact the author at:
\r
11 // fernando_cacciola@hotmail.com
\r
13 #ifndef BOOST_UTILITY_DETAIL_INPLACE_FACTORY_PREFIX_04APR2007_HPP
\r
14 #define BOOST_UTILITY_DETAIL_INPLACE_FACTORY_PREFIX_04APR2007_HPP
\r
18 #include <boost/config.hpp>
\r
19 #include <boost/preprocessor/cat.hpp>
\r
20 #include <boost/preprocessor/punctuation/paren.hpp>
\r
21 #include <boost/preprocessor/iteration/iterate.hpp>
\r
22 #include <boost/preprocessor/repetition/repeat.hpp>
\r
23 #include <boost/preprocessor/repetition/enum.hpp>
\r
24 #include <boost/preprocessor/repetition/enum_params.hpp>
\r
25 #include <boost/preprocessor/repetition/enum_binary_params.hpp>
\r
26 #include <boost/preprocessor/repetition/enum_trailing_params.hpp>
\r
28 #define BOOST_DEFINE_INPLACE_FACTORY_CLASS_MEMBER_INIT(z,n,_) BOOST_PP_CAT(m_a,n) BOOST_PP_LPAREN() BOOST_PP_CAT(a,n) BOOST_PP_RPAREN()
\r
29 #define BOOST_DEFINE_INPLACE_FACTORY_CLASS_MEMBER_DECL(z,n,_) BOOST_PP_CAT(A,n) const& BOOST_PP_CAT(m_a,n);
\r
31 #define BOOST_MAX_INPLACE_FACTORY_ARITY 10
\r
33 #undef BOOST_UTILITY_DETAIL_INPLACE_FACTORY_SUFFIX_04APR2007_HPP
\r