diff --git a/dispatchkit/proxy_functions.hpp b/dispatchkit/proxy_functions.hpp index 2885435..302ad53 100644 --- a/dispatchkit/proxy_functions.hpp +++ b/dispatchkit/proxy_functions.hpp @@ -66,27 +66,6 @@ namespace dispatchkit }; - // Build param type list (variadic) - template - std::vector build_param_type_list(const boost::function &f) - { - std::vector ti; - ti.push_back(Get_Type_Info::get()); - return ti; - } - - // call_func implementations (variadic) - template - Boxed_Value call_func(const boost::function &f, const std::vector ¶ms) - { - if (params.size() != 0) - { - throw std::range_error("Incorrect number of parameters"); - } else { - return Handle_Return()(f); - } - } - struct Param_List_Builder { Param_List_Builder &operator<<(const Boxed_Value &so) @@ -111,7 +90,7 @@ namespace dispatchkit }; } -#define BOOST_PP_ITERATION_LIMITS ( 1, 10 ) +#define BOOST_PP_ITERATION_LIMITS ( 0, 10 ) #define BOOST_PP_FILENAME_1 "proxy_functions.hpp" #include BOOST_PP_ITERATE() @@ -208,7 +187,8 @@ namespace dispatchkit namespace dispatchkit { - template + + template std::vector build_param_type_list(const boost::function &f) { std::vector ti; @@ -219,7 +199,7 @@ namespace dispatchkit return ti; } - template + template Boxed_Value call_func(const boost::function &f, const std::vector ¶ms) {