+ <para>Also, sigc++ 3.6 adds <literal remap="tt">sigc::scoped_connection</literal>. A scoped connection can be constructed or assigned from a normal/unscoped <literal remap="tt">sigc::connection</literal>, whereupon it effectively takes ownership of the connection, and will automatically <literal remap="tt">disconnect()</literal> it when the <literal remap="tt">sigc::scoped_connection</literal> 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 <literal remap="tt">std::shared_ptr</literal>. See the <literal remap="tt">sigc::scoped_connection</literal> class documentation for examples.</para>
0 commit comments