diff --git a/docs/docs/manual/libsigc_manual.xml b/docs/docs/manual/libsigc_manual.xml index ee8f6fa..bf57258 100644 --- a/docs/docs/manual/libsigc_manual.xml +++ b/docs/docs/manual/libsigc_manual.xml @@ -258,13 +258,19 @@ int main()
Disconnecting - If you decide you no longer want your code to be called whenever a signal is emitted, you must remember the return value of connect(), which we've been ignoring until now. connect() returns a sigc::connection object, which has a disconnect() member method. This does just what you think it does. + Also, sigc++ 3.6 adds sigc::scoped_connection. + A scoped connection can be constructed or assigned from a normal/unscoped sigc::connection, + whereupon it effectively takes ownership of the connection, and will automatically disconnect() + it when the sigc::scoped_connection is destroyed (goes out of scope) or reassigned. + This lets you tie whether a slot is called to the lifetime of a scoped connection object, e.g. as a class member, + instead of having to manually disconnect. Scoped connections can be put in containers, or made ref-counted via std::shared_ptr. + See the sigc::scoped_connection class documentation for examples.
@@ -431,7 +437,6 @@ asignal.connect( sigc::retype( sigc::ptr_fun(&dostuff) ) ); Reference - See the reference documentation online pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy