forked from boostorg/function
Workaround for a Visual Age C++ preprocessor issue
[SVN r17407]
This commit is contained in:
@ -17,6 +17,7 @@
|
|||||||
// design of this library.
|
// design of this library.
|
||||||
|
|
||||||
#include <boost/preprocessor/iterate.hpp>
|
#include <boost/preprocessor/iterate.hpp>
|
||||||
|
#include <boost/detail/workaround.hpp>
|
||||||
|
|
||||||
#ifndef BOOST_FUNCTION_MAX_ARGS
|
#ifndef BOOST_FUNCTION_MAX_ARGS
|
||||||
# define BOOST_FUNCTION_MAX_ARGS 10
|
# define BOOST_FUNCTION_MAX_ARGS 10
|
||||||
@ -26,7 +27,44 @@
|
|||||||
// in anything that may be included by function_template.hpp doesn't break
|
// in anything that may be included by function_template.hpp doesn't break
|
||||||
#include <boost/function/detail/prologue.hpp>
|
#include <boost/function/detail/prologue.hpp>
|
||||||
|
|
||||||
|
// Visual Age C++ doesn't handle the file iteration well
|
||||||
|
#if BOOST_WORKAROUND(__IBMCPP__, <= 600)
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 0
|
||||||
|
# include <boost/function/function0.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 1
|
||||||
|
# include <boost/function/function1.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 2
|
||||||
|
# include <boost/function/function2.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 3
|
||||||
|
# include <boost/function/function3.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 4
|
||||||
|
# include <boost/function/function4.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 5
|
||||||
|
# include <boost/function/function5.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 6
|
||||||
|
# include <boost/function/function6.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 7
|
||||||
|
# include <boost/function/function7.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 8
|
||||||
|
# include <boost/function/function8.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 9
|
||||||
|
# include <boost/function/function9.hpp>
|
||||||
|
# endif
|
||||||
|
# if BOOST_FUNCTION_MAX_ARGS >= 10
|
||||||
|
# include <boost/function/function10.hpp>
|
||||||
|
# endif
|
||||||
|
#else
|
||||||
// What is the '3' for?
|
// What is the '3' for?
|
||||||
#define BOOST_PP_ITERATION_PARAMS_1 (3,(0,BOOST_FUNCTION_MAX_ARGS,<boost/function/detail/function_iterate.hpp>))
|
# define BOOST_PP_ITERATION_PARAMS_1 (3,(0,BOOST_FUNCTION_MAX_ARGS,<boost/function/detail/function_iterate.hpp>))
|
||||||
#include BOOST_PP_ITERATE()
|
# include BOOST_PP_ITERATE()
|
||||||
|
# undef BOOST_PP_ITERATION_PARAMS_1
|
||||||
|
#endif
|
||||||
|
Reference in New Issue
Block a user