Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52477 - trunk/boost/signals2
From: fmhess_at_[hidden]
Date: 2009-04-18 22:18:51


Author: fmhess
Date: 2009-04-18 22:18:51 EDT (Sat, 18 Apr 2009)
New Revision: 52477
URL: http://svn.boost.org/trac/boost/changeset/52477

Log:
Fix c++0x perfect forwarding for deconstruct.

Text files modified:
   trunk/boost/signals2/deconstruct.hpp | 6 +++++-
   1 files changed, 5 insertions(+), 1 deletions(-)

Modified: trunk/boost/signals2/deconstruct.hpp
==============================================================================
--- trunk/boost/signals2/deconstruct.hpp (original)
+++ trunk/boost/signals2/deconstruct.hpp 2009-04-18 22:18:51 EDT (Sat, 18 Apr 2009)
@@ -43,10 +43,14 @@
 
 namespace detail
 {
- template< class T > T forward( T t )
+
+#if defined( BOOST_HAS_RVALUE_REFS )
+ template< class T > T&& forward( T &&t )
   {
       return t;
   }
+#endif
+
   inline void adl_predestruct(...) {}
 } // namespace detail
 


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