mirror of
https://github.com/boostorg/function.git
synced 2025-07-17 06:32:13 +02:00
- Deprecate user use of function_base - Use the Boost Preprocessor library to make Function scalable to any (reasonable) number of arguments - Make any_pointer a POD (oops) - Test Boost.Function for 30 arguments - Remove tests of deprecated features [SVN r15498]
17 lines
499 B
C++
17 lines
499 B
C++
// Make sure we don't try to redefine function2
|
|
#include <boost/function/function2.hpp>
|
|
|
|
// Define all Boost.Function class templates up to 30 arguments
|
|
#define BOOST_FUNCTION_MAX_ARGS 30
|
|
#include <boost/function.hpp>
|
|
|
|
int main()
|
|
{
|
|
boost::function0<float> f0;
|
|
|
|
boost::function30<float, int, int, int, int, int, int, int, int, int, int,
|
|
int, int, int, int, int, int, int, int, int, int,
|
|
int, int, int, int, int, int, int, int, int, int> f30;
|
|
return 0;
|
|
}
|