|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50693 - sandbox/thread_safe_signals/trunk/libs/signals2/doc/reference
From: fmhess_at_[hidden]
Date: 2009-01-20 16:58:21
Author: fmhess
Date: 2009-01-20 16:58:21 EST (Tue, 20 Jan 2009)
New Revision: 50693
URL: http://svn.boost.org/trac/boost/changeset/50693
Log:
Tried to clairify the behavior of the signal::disconnect template.
Text files modified:
sandbox/thread_safe_signals/trunk/libs/signals2/doc/reference/signal_header.xml | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
Modified: sandbox/thread_safe_signals/trunk/libs/signals2/doc/reference/signal_header.xml
==============================================================================
--- sandbox/thread_safe_signals/trunk/libs/signals2/doc/reference/signal_header.xml (original)
+++ sandbox/thread_safe_signals/trunk/libs/signals2/doc/reference/signal_header.xml 2009-01-20 16:58:21 EST (Tue, 20 Jan 2009)
@@ -232,18 +232,26 @@
</signature>
<signature>
<template>
- <template-type-parameter name="Slot"/>
+ <template-type-parameter name="S"/>
</template>
<type>void</type>
- <parameter name="slot">
- <paramtype>const Slot&</paramtype>
+ <parameter name="slot_func">
+ <paramtype>const S&</paramtype>
</parameter>
</signature>
<effects><para>If the parameter is (convertible to) a
group name, any slots in the given group are
- disconnected. Otherwise, any slots equal to the given slot
- are disconnected.</para></effects>
+ disconnected. Otherwise, any slots equal to the
+ given slot function
+ are disconnected.
+ </para>
+ <para>Note, the <code>slot_func</code>
+ argument should not be an actual <classname alt="slotN">signals2::slot</classname>
+ object (which does not even support <code>operator==</code>), but rather
+ the functor you wrapped inside a <classname alt="slotN">signals2::slot</classname>
+ when you initially made the connection.
+ </para></effects>
<throws><para>Will not throw unless a user destructor or
equality operator <code>==</code> throws. If either throws,
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk