Skip to content

Commit 88d6ef1

Browse files
committed
signal: Use the slot<R(Args..)> syntax.
1 parent a3d87bf commit 88d6ef1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sigc++/macros/signal.h.m4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct signal_emit$1
3030
{
3131
typedef signal_emit$1<LIST(T_return, LOOP(T_arg%1, $1), T_accumulator)> self_type;
3232
typedef typename T_accumulator::result_type result_type;
33-
typedef slot<LIST(T_return, LOOP(T_arg%1, $1))> slot_type;
33+
typedef slot<T_return(LIST(LOOP(T_arg%1, $1)))> slot_type;
3434
typedef internal::slot_iterator_buf<self_type, T_return> slot_iterator_buf_type;
3535
typedef internal::slot_reverse_iterator_buf<self_type, T_return> slot_reverse_iterator_buf_type;
3636
typedef signal_impl::const_iterator_type iterator_type;
@@ -112,7 +112,7 @@ struct signal_emit$1<LIST(T_return, LOOP(T_arg%1, $1), nil)>
112112
{
113113
typedef signal_emit$1<LIST(T_return, LOOP(T_arg%1, $1), nil) > self_type;
114114
typedef T_return result_type;
115-
typedef slot<LIST(T_return, LOOP(T_arg%1, $1))> slot_type;
115+
typedef slot<T_return(LIST(LOOP(T_arg%1, $1)))> slot_type;
116116
typedef signal_impl::const_iterator_type iterator_type;
117117
typedef typename slot_type::call_type call_type;
118118
@@ -216,7 +216,7 @@ struct signal_emit$1<LIST(void, LOOP(T_arg%1, $1), nil)>
216216
{
217217
typedef signal_emit$1<LIST(void, LOOP(T_arg%1, $1), nil)> self_type;
218218
typedef void result_type;
219-
typedef slot<LIST(void, LOOP(T_arg%1, $1))> slot_type;
219+
typedef slot<void(LIST(LOOP(T_arg%1, $1)))> slot_type;
220220
typedef signal_impl::const_iterator_type iterator_type;
221221
typedef ifelse($1,0,void (*call_type)(slot_rep*),typename slot_type::call_type call_type);
222222
@@ -310,7 +310,7 @@ class signal$1
310310
public:
311311
typedef internal::signal_emit$1<LIST(T_return, LOOP(T_arg%1, $1), T_accumulator)> emitter_type;
312312
typedef typename emitter_type::result_type result_type;
313-
typedef slot<LIST(T_return, LOOP(T_arg%1, $1))> slot_type;
313+
typedef slot<T_return(LIST(LOOP(T_arg%1, $1)))> slot_type;
314314
typedef slot_list<slot_type> slot_list_type;
315315
typedef typename slot_list_type::iterator iterator;
316316
typedef typename slot_list_type::const_iterator const_iterator;

0 commit comments

Comments
 (0)