Skip to content

Commit 2afeab2

Browse files
committed
signal: Document older syntax as deprecated.
1 parent 88d6ef1 commit 2afeab2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sigc++/macros/signal.h.m4

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,11 @@ FOR(1,$1,[
453453
* sig.emit(19);
454454
* @endcode
455455
*
456+
* @deprecated Please use the syntax similar to that used by std::function<>:
457+
* @code
458+
* sigc::slot<void(bool, int)> some_slot;
459+
* @endcode
460+
*
456461
* @ingroup signal
457462
*/
458463
template <LIST(class T_return, LOOP(class T_arg%1 = nil, $1))>
@@ -462,6 +467,11 @@ class signal],[dnl
462467
* See the base class for useful methods.
463468
* This is the template specialization of the unnumbered sigc::signal
464469
* template for $1 argument(s).
470+
*
471+
* @deprecated Please use the syntax similar to that used by std::function<>:
472+
* @code
473+
* sigc::slot<void(bool, int)> some_slot;
474+
* @endcode
465475
ifelse($1, $2,[dnl
466476
*
467477
* @ingroup signal

0 commit comments

Comments
 (0)