$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r85017 - trunk/libs/multi_index/test
From: joaquin_at_[hidden]
Date: 2013-07-12 14:19:20
Author: joaquin
Date: 2013-07-12 14:19:20 EDT (Fri, 12 Jul 2013)
New Revision: 85017
URL: http://svn.boost.org/trac/boost/changeset/85017
Log:
properly made employee Boost.Move-wise copyable and movable
Text files modified: 
   trunk/libs/multi_index/test/employee.hpp |    16 ++++++++++++++++                        
   1 files changed, 16 insertions(+), 0 deletions(-)
Modified: trunk/libs/multi_index/test/employee.hpp
==============================================================================
--- trunk/libs/multi_index/test/employee.hpp	Fri Jul 12 14:17:29 2013	(r85016)
+++ trunk/libs/multi_index/test/employee.hpp	2013-07-12 14:19:20 EDT (Fri, 12 Jul 2013)	(r85017)
@@ -38,10 +38,23 @@
     id(id_),name(name_),age(age_),ssn(ssn_)
   {}
 
+  employee(const employee& x):
+    id(x.id),name(x.name),age(x.age),ssn(x.ssn)
+  {}
+
   employee(BOOST_RV_REF(employee) x):
     id(x.id),name(boost::move(x.name)),age(x.age),ssn(x.ssn)
   {}
 
+  employee& operator=(BOOST_COPY_ASSIGN_REF(employee) x)
+  {
+    id=x.id;
+    name=x.name;
+    age=x.age;
+    ssn=x.ssn;
+    return *this;
+  };
+
   employee& operator=(BOOST_RV_REF(employee) x)
   {
     id=x.id;
@@ -77,6 +90,9 @@
     os<<e.id<<" "<<e.name<<" "<<e.age<<std::endl;
     return os;
   }
+
+private:
+  BOOST_COPYABLE_AND_MOVABLE(employee)
 };
 
 struct name{};