forked from boostorg/optional
37 lines
1.5 KiB
C++
37 lines
1.5 KiB
C++
![]() |
// (C) 2002, Fernando Luis Cacciola Carballal.
|
||
|
//
|
||
|
// This material is provided "as is", with absolutely no warranty expressed
|
||
|
// or implied. Any use is at your own risk.
|
||
|
//
|
||
|
// Permission to use or copy this software for any purpose is hereby granted
|
||
|
// without fee, provided the above notices are retained on all copies.
|
||
|
// Permission to modify the code and to distribute modified code is granted,
|
||
|
// provided the above notices are retained, and a notice that the code was
|
||
|
// modified is included with the above copyright notice.
|
||
|
//
|
||
|
// You are welcome to contact the author at:
|
||
|
// fernando_cacciola@hotmail.com
|
||
|
//
|
||
|
#ifndef BOOST_UTILITY_INPLACE_FACTORY_PREFIX_25AGO2003_HPP
|
||
|
#define BOOST_UTILITY_INPLACE_FACTORY_PREFIX_25AGO2003_HPP
|
||
|
|
||
|
#include <boost/config.hpp>
|
||
|
#include <boost/preprocessor/repetition/enum.hpp>
|
||
|
#include <boost/preprocessor/repetition/enum_params.hpp>
|
||
|
#include <boost/preprocessor/repetition/enum_binary_params.hpp>
|
||
|
#include <boost/preprocessor/cat.hpp>
|
||
|
#include <boost/preprocessor/arithmetic/inc.hpp>
|
||
|
#include <boost/preprocessor/punctuation/paren.hpp>
|
||
|
#include <boost/preprocessor/facilities/empty.hpp>
|
||
|
|
||
|
#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()
|
||
|
#define BOOST_DEFINE_INPLACE_FACTORY_CLASS_MEMBER_DECL(z,n,_) BOOST_PP_CAT(A,n) const& BOOST_PP_CAT(m_a,n);
|
||
|
#define BOOST_DEFINE_INPLACE_FACTORY_CLASS_MEMBER_ARG(z,n,_) BOOST_PP_CAT(m_a,n)
|
||
|
|
||
|
#define BOOST_MAX_INPLACE_FACTORY_ARITY 10
|
||
|
|
||
|
#undef BOOST_UTILITY_INPLACE_FACTORY_SUFFIX_25AGO2003_HPP
|
||
|
|
||
|
#endif
|
||
|
|