From 48948088fdcf736739c75eb7ade2b062764f0f90 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Sun, 1 Jul 2001 19:17:38 +0000 Subject: [PATCH] function_template.hpp: - One argument functions model AdaptableUnaryFunction - Two argument functions model AdaptableBinaryFunction [SVN r10502] --- include/boost/function/function_template.hpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/boost/function/function_template.hpp b/include/boost/function/function_template.hpp index bc61ce3..c32545e 100644 --- a/include/boost/function/function_template.hpp +++ b/include/boost/function/function_template.hpp @@ -465,6 +465,12 @@ namespace boost { public: BOOST_STATIC_CONSTANT(int, args = BOOST_FUNCTION_NUM_ARGS); +#if BOOST_FUNCTION_NUM_ARGS == 1 + typedef T1 argument_type; +#elif BOOST_FUNCTION_NUM_ARGS == 2 + typedef T1 first_argument_type; + typedef T2 second_argument_type; +#endif typedef typename function_return_type::type result_type; typedef Policy policy_type; typedef Mixin mixin_type;