-
Notifications
You must be signed in to change notification settings - Fork 298
/
create.hpp
36 lines (32 loc) · 1.06 KB
/
create.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
* Boost.Extension / factory:
* factory to register the implementations and create them
*
* (C) Copyright Jeremy Pack 2008
* Distributed under the Boost Software License, Version 1.0. (See
* accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* See http://www.boost.org/ for latest version.
*/
#ifndef BOOST_EXTENSION_IMPL_CREATE_HPP
#define BOOST_EXTENSION_IMPL_CREATE_HPP
namespace boost {
namespace extensions {
namespace impl {
#define N BOOST_EXTENSION_MAX_FUNCTOR_PARAMS
template <class T, class D
BOOST_PP_COMMA_IF(N)
BOOST_PP_ENUM_PARAMS_WITH_A_DEFAULT( \
BOOST_PP_INC(N), class Param, void) >
struct create_function;
#undef N
// generate specializations of create_func
# define BOOST_PP_ITERATION_LIMITS \
(0, BOOST_PP_INC(BOOST_EXTENSION_MAX_FUNCTOR_PARAMS) - 1)
# define BOOST_PP_FILENAME_1 "Core/Utils/extension/impl/create_func.hpp"
# include BOOST_PP_ITERATE()
} // namespace impl
} // namespace extensions
} // namespace boost
#endif // BOOST_EXTENSION_IMPL_CREATE_HPP