Chris@16
|
1
|
Chris@16
|
2 // Copyright (C) 2009-2012 Lorenzo Caminiti
|
Chris@16
|
3 // Distributed under the Boost Software License, Version 1.0
|
Chris@16
|
4 // (see accompanying file LICENSE_1_0.txt or a copy at
|
Chris@16
|
5 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
6 // Home at http://www.boost.org/libs/functional/overloaded_function
|
Chris@16
|
7
|
Chris@16
|
8 #ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_HPP_
|
Chris@16
|
9 #define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_HPP_
|
Chris@16
|
10
|
Chris@16
|
11 /** @file
|
Chris@16
|
12 @brief Change the compile-time configuration of this library.
|
Chris@16
|
13 */
|
Chris@16
|
14
|
Chris@16
|
15 /**
|
Chris@16
|
16 @brief Specify the maximum number of arguments of the functions being
|
Chris@16
|
17 overloaded.
|
Chris@16
|
18
|
Chris@16
|
19 If this macro is left undefined by the user, it has a default value of 5
|
Chris@16
|
20 (increasing this number might increase compilation time).
|
Chris@16
|
21 When specified by the user, this macro must be a non-negative integer number.
|
Chris@16
|
22
|
Chris@16
|
23 @See @RefSect{getting_started, Getting Started},
|
Chris@16
|
24 @RefClass{boost::overloaded_function}.
|
Chris@16
|
25 */
|
Chris@16
|
26 #ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX
|
Chris@16
|
27 # define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX 5
|
Chris@16
|
28 #endif
|
Chris@16
|
29
|
Chris@16
|
30 /**
|
Chris@16
|
31 @brief Specify the maximum number of functions that can be overloaded.
|
Chris@16
|
32
|
Chris@16
|
33 If this macro is left undefined by the user, it has a default value of 5
|
Chris@16
|
34 (increasing this number might increase compilation time).
|
Chris@16
|
35 When defined by the user, this macro must be an integer number greater or
|
Chris@16
|
36 equal than 2 (because at least two distinct functions need to be specified in
|
Chris@16
|
37 order to define an overload).
|
Chris@16
|
38
|
Chris@16
|
39 @See @RefSect{getting_started, Getting Started},
|
Chris@16
|
40 @RefClass{boost::overloaded_function}.
|
Chris@16
|
41 */
|
Chris@16
|
42 #ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX
|
Chris@16
|
43 # define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX 5
|
Chris@16
|
44 #endif
|
Chris@16
|
45 #if BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX < 2
|
Chris@16
|
46 # error "maximum overload macro cannot be less than 2"
|
Chris@16
|
47 #endif
|
Chris@16
|
48
|
Chris@16
|
49 #endif // #include guard
|
Chris@16
|
50
|