Skip to content

Commit d29b0ef

Browse files
committed
slot: Document older syntax as deprecated
1 parent 2afeab2 commit d29b0ef

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

sigc++/functors/macros/slot.h.m4

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,12 @@ FOR(1,$1,[
185185
*
186186
* sigc::slot<> is similar to std::function<>. If you're going to assign the
187187
* resulting functor to a sigc::slot or connect it to a sigc::signal, it's better
188-
* not to use std::function. It would become un unnecessary extra wrapper.
188+
* not to use std::function. It would become an unnecessary extra wrapper.
189+
*
190+
* @deprecated Please use the syntax similar to that used by std::function<>:
191+
* @code
192+
* sigc::slot<void(bool, int)> some_slot;
193+
* @endcode
189194
*
190195
* @ingroup slot
191196
*/
@@ -197,6 +202,12 @@ class slot],[dnl
197202
* This is the template specialization of the unnumbered sigc::slot
198203
* template for $1 argument(s), specialized for different numbers of arguments
199204
* This is possible because the template has default (nil) template types.
205+
*
206+
* @deprecated Please use the syntax similar to that used by std::function<>:
207+
* @code
208+
* sigc::slot<void(bool, int)> some_slot;
209+
* @endcode
210+
*
200211
dnl *
201212
dnl * @ingroup slot
202213
*/

0 commit comments

Comments
 (0)