Chris@16: Chris@16: // Copyright (C) 2009-2012 Lorenzo Caminiti Chris@16: // Distributed under the Boost Software License, Version 1.0 Chris@16: // (see accompanying file LICENSE_1_0.txt or a copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // Home at http://www.boost.org/libs/functional/overloaded_function Chris@16: Chris@16: #ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_HPP_ Chris@16: #define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_HPP_ Chris@16: Chris@16: /** @file Chris@16: @brief Change the compile-time configuration of this library. Chris@16: */ Chris@16: Chris@16: /** Chris@16: @brief Specify the maximum number of arguments of the functions being Chris@16: overloaded. Chris@16: Chris@16: If this macro is left undefined by the user, it has a default value of 5 Chris@16: (increasing this number might increase compilation time). Chris@16: When specified by the user, this macro must be a non-negative integer number. Chris@16: Chris@16: @See @RefSect{getting_started, Getting Started}, Chris@16: @RefClass{boost::overloaded_function}. Chris@16: */ Chris@16: #ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX Chris@16: # define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_ARITY_MAX 5 Chris@16: #endif Chris@16: Chris@16: /** Chris@16: @brief Specify the maximum number of functions that can be overloaded. Chris@16: Chris@16: If this macro is left undefined by the user, it has a default value of 5 Chris@16: (increasing this number might increase compilation time). Chris@16: When defined by the user, this macro must be an integer number greater or Chris@16: equal than 2 (because at least two distinct functions need to be specified in Chris@16: order to define an overload). Chris@16: Chris@16: @See @RefSect{getting_started, Getting Started}, Chris@16: @RefClass{boost::overloaded_function}. Chris@16: */ Chris@16: #ifndef BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX Chris@16: # define BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX 5 Chris@16: #endif Chris@16: #if BOOST_FUNCTIONAL_OVERLOADED_FUNCTION_CONFIG_OVERLOAD_MAX < 2 Chris@16: # error "maximum overload macro cannot be less than 2" Chris@16: #endif Chris@16: Chris@16: #endif // #include guard Chris@16: