|
Boost-Commit : |
From: anthony_at_[hidden]
Date: 2007-10-09 02:59:15
Author: anthonyw
Date: 2007-10-09 02:59:14 EDT (Tue, 09 Oct 2007)
New Revision: 39832
URL: http://svn.boost.org/trac/boost/changeset/39832
Log:
added missing move.hpp header
Added:
trunk/boost/thread/detail/move.hpp (contents, props changed)
Added: trunk/boost/thread/detail/move.hpp
==============================================================================
--- (empty file)
+++ trunk/boost/thread/detail/move.hpp 2007-10-09 02:59:14 EDT (Tue, 09 Oct 2007)
@@ -0,0 +1,33 @@
+// Distributed under the Boost Software License, Version 1.0. (See
+// accompanying file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+// (C) Copyright 2007 Anthony Williams
+
+#ifndef BOOST_THREAD_MOVE_HPP
+#define BOOST_THREAD_MOVE_HPP
+
+namespace boost
+{
+ template<typename T>
+ struct move_t
+ {
+ T& t;
+ move_t(T& t_):
+ t(t_)
+ {}
+
+ T* operator->() const
+ {
+ return &t;
+ }
+ };
+
+ template<typename T>
+ move_t<T> move(T& t)
+ {
+ return move_t<T>(t);
+ }
+}
+
+
+#endif
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