[libsigc++2/variadic_bind3: 9/45] signal_emit1/2/3/etc: Simplify call_type typedef.



commit a3c94cecb073c15116f4874a13a261a4b0bc15ac
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Jan 14 12:18:35 2016 +0100

    signal_emit1/2/3/etc: Simplify call_type typedef.

 sigc++/macros/signal.h.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sigc++/macros/signal.h.m4 b/sigc++/macros/signal.h.m4
index 05ffa94..1321f77 100644
--- a/sigc++/macros/signal.h.m4
+++ b/sigc++/macros/signal.h.m4
@@ -214,7 +214,7 @@ struct signal_emit$1<void, nil, T_arg...>
   typedef void result_type;
   typedef slot<void, T_arg...> slot_type;
   typedef signal_impl::const_iterator_type iterator_type;
-  typedef ifelse($1,0,void (*call_type)(slot_rep*),typename slot_type::call_type call_type);
+  typedef typename slot_type::call_type call_type;
 
   /** Executes a list of slots using an accumulator of type @e T_accumulator.dnl
    * The arguments are passed directly on to the slots.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]