From f2577c8af30c862bbcbd0a14613479502f85f14b Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Fri, 17 Jul 2015 16:07:33 +0300 Subject: [PATCH] function_traits: export the function signature as a type This makes it easy to further examine using pattern matching instead of std::index_sequence. --- core/function_traits.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/core/function_traits.hh b/core/function_traits.hh index b45b418c35..1d278a6207 100644 --- a/core/function_traits.hh +++ b/core/function_traits.hh @@ -31,6 +31,7 @@ struct function_traits { using return_type = Ret; using args_as_tuple = std::tuple; + using signature = Ret (Args...); static constexpr std::size_t arity = sizeof...(Args);