Ещё раз, это boost! function.hpp:
# if BOOST_FUNCTION_MAX_ARGS >= 10
# include <boost/function/function10.hpp>
# endif
#else
// What is the '3' for?
# define BOOST_PP_ITERATION_PARAMS_1 (3,(0,BOOST_FUNCTION_MAX_ARGS,<boost/function/detail/function_iterate.hpp>))
# include BOOST_PP_ITERATE()
# undef BOOST_PP_ITERATION_PARAMS_1
#endif
Здравствуйте, johny5, Вы писали:
J>J>// What is the '3' for?
J>
# define BOOST_PP_ITERATION_PARAMS_1 (
3,(0,BOOST_FUNCTION_MAX_ARGS,<boost/function/detail/function_iterate.hpp>))
J>
Коммент, конечно, доставляет, но вообще тут:
http://www.boost.org/libs/preprocessor/doc/ref/iteration_params_x.html
Здравствуйте, johny5, Вы писали:
J>J> # if BOOST_FUNCTION_MAX_ARGS >= 10
J># include <boost/function/function10.hpp>
J># endif
J>#else
J>// What is the '3' for?
J>
# define BOOST_PP_ITERATION_PARAMS_1 (
3,(0,BOOST_FUNCTION_MAX_ARGS,<boost/function/detail/function_iterate.hpp>))
J>
# include BOOST_PP_ITERATE()
J>
# undef BOOST_PP_ITERATION_PARAMS_1
J>
#endif
J>
J>
Ясно что чел писал по примерчку, копи паст однако.
[In theory there is no difference between theory and practice. In
practice there is.]
[Даю очевидные ответы на риторические вопросы]