From 1a4c2f0afccd08e2aaa1db5c15a2b5ba73455266 Mon Sep 17 00:00:00 2001 From: qicosmos Date: Sat, 8 Jun 2019 14:35:16 +0800 Subject: [PATCH] fix --- include/meta_util.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/meta_util.hpp b/include/meta_util.hpp index cec0265..0fa1562 100644 --- a/include/meta_util.hpp +++ b/include/meta_util.hpp @@ -34,6 +34,21 @@ namespace rest_rpc{ using args_tuple_2nd = std::tuple>...>; }; + template + struct function_traits { + public: + enum { arity = 0 }; + typedef Ret function_type(); + typedef Ret return_type; + using stl_function_type = std::function; + typedef Ret(*pointer)(); + + typedef std::tuple<> tuple_type; + typedef std::tuple<> bare_tuple_type; + using args_tuple = std::tuple; + using args_tuple_2nd = std::tuple; + }; + template struct function_traits : function_traits{};