Boost logo

Boost-Commit :

From: garcia_at_[hidden]
Date: 2008-07-10 15:28:49


Author: garcia
Date: 2008-07-10 15:28:49 EDT (Thu, 10 Jul 2008)
New Revision: 47295
URL: http://svn.boost.org/trac/boost/changeset/47295

Log:
Added unwrap_ref.

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

Modified: trunk/boost/ref.hpp
==============================================================================
--- trunk/boost/ref.hpp (original)
+++ trunk/boost/ref.hpp 2008-07-10 15:28:49 EDT (Thu, 10 Jul 2008)
@@ -173,6 +173,12 @@
 
 # endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
 
+template <class T> inline typename unwrap_reference<T>::type&
+unwrap_ref(T& t)
+{
+ return t;
+}
+
 } // namespace boost
 
 #endif // #ifndef BOOST_REF_HPP_INCLUDED


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