Skip to content

Commit 257acc2

Browse files
committed
docs: mem_fun: Improve the note about auto-disconnection.
Because "cleared" doesn't really tell us how this benefits us.
1 parent d3ad360 commit 257acc2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,11 @@ namespace sigc {
217217
*
218218
* Optionally, a reference or pointer to an object can be bound to the functor.
219219
*
220-
* @note Only if the object type inherits from sigc::trackable, and the
221-
* functor returned from mem_fun() is assigned to a sigc::slot, is the functor
222-
* automatically cleared when the object goes out of scope!
220+
* @note If the object type inherits from sigc::trackable, and the
221+
* functor returned from mem_fun() is assigned to a sigc::slot, the functor
222+
* will be automatically cleared when the object goes out of scope. Invoking
223+
* that slot will then have no effect and will not try to use the destroyed
224+
* instance.
223225
*
224226
* If the member function pointer is to an overloaded type, you must specify
225227
* the types using template arguments starting with the first argument.

0 commit comments

Comments
 (0)