Skip to content

Commit d3ad360

Browse files
committed
docs: slots: Mention automatic disconnection.
1 parent 49a05a0 commit d3ad360

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sigc++/functors/slot_base.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ struct SIGC_API slot_do_unbind
201201
*
202202
* You can also pass slots as method parameters where you might normally pass a function pointer.
203203
*
204+
* @section slots-auto-disconnect Member Methods and Automatic Disconnection.
205+
*
206+
* See @ref mem_fun "sigc::mem_fun()" about deriving from sigc::trackable to prevent member
207+
* methods from being called after the instance has been destroyed.
208+
*
204209
* @section slots-auto auto
205210
*
206211
* sigc::mem_fun() and sigc::ptr_fun() return functors, but those functors are

0 commit comments

Comments
 (0)