diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-05-19 14:05:23 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-05-19 14:05:23 +0200 |
commit | 5d8423cd2b05dc3d952abbe790d259699cbbaecf (patch) | |
tree | 6df08176aa478e21645170b5b65e16610b7c62f1 /sigc++/signal_base.h | |
parent | 196625df045cf7202da1b57acb39ee8b5a16a982 (diff) | |
download | sigc++-5d8423cd2b05dc3d952abbe790d259699cbbaecf.tar.gz |
signal::make_slot() docs: Note that signal does not derive from trackable
and therefore the made slot must be manually disconnected if the
signal is deleted. See #80
Diffstat (limited to 'sigc++/signal_base.h')
-rw-r--r-- | sigc++/signal_base.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sigc++/signal_base.h b/sigc++/signal_base.h index 3027c69..aa27bc2 100644 --- a/sigc++/signal_base.h +++ b/sigc++/signal_base.h @@ -266,6 +266,11 @@ protected: * @ref sigc::signal_with_accumulator::connect() "sigc::signal::connect()". */ +//TODO: When we can break ABI, let signal_base derive from trackable again. +// It does in sigc++2. Otherwise the slot returned from signal::make_slot() +// is not automatically disconnected when the signal is deleted. +// https://github.com/libsigcplusplus/libsigcplusplus/issues/80 + /** Base class for the @ref sigc::signal<T_return(T_arg...)> "sigc::signal" template. * %signal_base integrates most of the interface of the derived * @ref sigc::signal<T_return(T_arg...)> "sigc::signal" template. |