Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2008-07-22 14:06:25


Author: fmhess
Date: 2008-07-22 14:06:24 EDT (Tue, 22 Jul 2008)
New Revision: 47693
URL: http://svn.boost.org/trac/boost/changeset/47693

Log:
Fixed bug in example code, reported by "Igor R".

Text files modified:
   sandbox/thread_safe_signals/libs/thread_safe_signals/doc/tutorial.xml | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/thread_safe_signals/libs/thread_safe_signals/doc/tutorial.xml
==============================================================================
--- sandbox/thread_safe_signals/libs/thread_safe_signals/doc/tutorial.xml (original)
+++ sandbox/thread_safe_signals/libs/thread_safe_signals/doc/tutorial.xml 2008-07-22 14:06:24 EDT (Tue, 22 Jul 2008)
@@ -869,7 +869,7 @@
 boost::shared_ptr<NewsMessageArea> newsMessageArea(new NewsMessageArea(/* ... */));
 // ...
 deliverNews.<methodname>connect</methodname>(signal_type::slot_type(&amp;NewsMessageArea::displayNews,
- newsMessageArea, _1).track(newsMessageArea));
+ newsMessageArea.get(), _1).track(newsMessageArea));
 </programlisting>
 <para>Note there is no explicit call to bind() needed in the above example. If the
 <classname alt="slotN">slot</classname> constructor is passed more than one


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