Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame^] | 1 | // Copyright (C) 2003, Fernando Luis Cacciola Carballal. |
| 2 | // Copyright (C) 2007, Tobias Schwinger. |
| 3 | // |
| 4 | // Use, modification, and distribution is subject to the Boost Software |
| 5 | // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at |
| 6 | // http://www.boost.org/LICENSE_1_0.txt) |
| 7 | // |
| 8 | // See http://www.boost.org/libs/optional for documentation. |
| 9 | // |
| 10 | // You are welcome to contact the author at: |
| 11 | // fernando_cacciola@hotmail.com |
| 12 | // |
| 13 | #ifndef BOOST_UTILITY_DETAIL_INPLACE_FACTORY_PREFIX_04APR2007_HPP |
| 14 | #define BOOST_UTILITY_DETAIL_INPLACE_FACTORY_PREFIX_04APR2007_HPP |
| 15 | |
| 16 | #include <new> |
| 17 | #include <cstddef> |
| 18 | #include <ndnboost/config.hpp> |
| 19 | #include <ndnboost/preprocessor/cat.hpp> |
| 20 | #include <ndnboost/preprocessor/punctuation/paren.hpp> |
| 21 | #include <ndnboost/preprocessor/iteration/iterate.hpp> |
| 22 | #include <ndnboost/preprocessor/repetition/repeat.hpp> |
| 23 | #include <ndnboost/preprocessor/repetition/enum.hpp> |
| 24 | #include <ndnboost/preprocessor/repetition/enum_params.hpp> |
| 25 | #include <ndnboost/preprocessor/repetition/enum_binary_params.hpp> |
| 26 | #include <ndnboost/preprocessor/repetition/enum_trailing_params.hpp> |
| 27 | |
| 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() |
| 29 | #define BOOST_DEFINE_INPLACE_FACTORY_CLASS_MEMBER_DECL(z,n,_) BOOST_PP_CAT(A,n) const& BOOST_PP_CAT(m_a,n); |
| 30 | |
| 31 | #define BOOST_MAX_INPLACE_FACTORY_ARITY 10 |
| 32 | |
| 33 | #undef BOOST_UTILITY_DETAIL_INPLACE_FACTORY_SUFFIX_04APR2007_HPP |
| 34 | |
| 35 | #endif |
| 36 | |