Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r83055 - sandbox/tuple-move/detail
From: adam.wulkiewicz_at_[hidden]
Date: 2013-02-20 21:48:41


Author: awulkiew
Date: 2013-02-20 21:48:41 EST (Wed, 20 Feb 2013)
New Revision: 83055
URL: http://svn.boost.org/trac/boost/changeset/83055

Log:
marked tuple as movable and copyable, added move ctor to tuple
Text files modified:
   sandbox/tuple-move/detail/tuple_basic.hpp | 4 ++++
   1 files changed, 4 insertions(+), 0 deletions(-)

Modified: sandbox/tuple-move/detail/tuple_basic.hpp
==============================================================================
--- sandbox/tuple-move/detail/tuple_basic.hpp (original)
+++ sandbox/tuple-move/detail/tuple_basic.hpp 2013-02-20 21:48:41 EST (Wed, 20 Feb 2013)
@@ -533,6 +533,8 @@
 class tuple :
   public detail::map_tuple_to_cons<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::type
 {
+ BOOST_COPYABLE_AND_MOVABLE(tuple)
+
 public:
   typedef typename
     detail::map_tuple_to_cons<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>::type inherited;
@@ -633,6 +635,8 @@
 
   template<class U1, class U2>
   tuple(const cons<U1, U2>& p) : inherited(p) {}
+ template<class U1, class U2>
+ tuple(BOOST_RV_REF_2_TEMPL_ARGS(cons, U1, U2) p) : inherited(p) {}
 
   template <class U1, class U2>
   tuple& operator=(const cons<U1, U2>& k) {


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