[libsigcplusplus/variadic_mem_fun3: 144/148] mem_functor_base: Use member_method_result<>::type.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus/variadic_mem_fun3: 144/148] mem_functor_base: Use member_method_result<>::type.
- Date: Mon, 7 Mar 2016 10:09:55 +0000 (UTC)
commit f0c9fbad8a7797ca4006405a3bff6d9bb43e86e2
Author: Murray Cumming <murrayc murrayc com>
Date: Sun Mar 6 00:07:54 2016 +0100
mem_functor_base: Use member_method_result<>::type.
To avoid the (apparent) need to use T_args... with std::result_of_t<>.
sigc++/functors/macros/mem_fun.h.m4 | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sigc++/functors/macros/mem_fun.h.m4 b/sigc++/functors/macros/mem_fun.h.m4
index f78f47c..9736334 100644
--- a/sigc++/functors/macros/mem_fun.h.m4
+++ b/sigc++/functors/macros/mem_fun.h.m4
@@ -179,7 +179,7 @@ public:
using object_type = typename member_method_class<T_func>::type;
using function_type = T_func;
- using result_type = std::result_of_t<T_func(object_type*, T_arg...)>;
+ using result_type = typename member_method_result<T_func>::type;
using obj_type_with_modifier = typename std::conditional_t<
member_method_is_const<T_func>::value, const object_type, object_type>;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]