Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49116 - sandbox/thread_safe_signals/trunk/boost/signals2/detail
From: fmhess_at_[hidden]
Date: 2008-10-02 14:19:40


Author: fmhess
Date: 2008-10-02 14:19:40 EDT (Thu, 02 Oct 2008)
New Revision: 49116
URL: http://svn.boost.org/trac/boost/changeset/49116

Log:
automatically track signals that are wrapped in a boost::reference_wrapper.

Text files modified:
   sandbox/thread_safe_signals/trunk/boost/signals2/detail/slot_template.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/thread_safe_signals/trunk/boost/signals2/detail/slot_template.hpp
==============================================================================
--- sandbox/thread_safe_signals/trunk/boost/signals2/detail/slot_template.hpp (original)
+++ sandbox/thread_safe_signals/trunk/boost/signals2/detail/slot_template.hpp 2008-10-02 14:19:40 EDT (Thu, 02 Oct 2008)
@@ -49,7 +49,7 @@
       template<typename F>
       BOOST_SLOT_CLASS_NAME(BOOST_SIGNALS_NUM_ARGS)(const F& f): _slot_function(detail::get_invocable_slot(f, detail::tag_type(f)))
       {
- detail::auto_tracker<typename detail::get_slot_tag<F>::type> at(this, f);
+ detail::auto_tracker<typename detail::get_slot_tag<typename unwrap_reference<F>::type>::type> at(this, f);
       }
       // copy constructors
       template<BOOST_SIGNAL_PREFIXED_SIGNATURE_TEMPLATE_DECL(BOOST_SIGNALS_NUM_ARGS, Other), typename OtherSlotFunction>


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