Subject: [Boost-commit] svn:boost r50120 - trunk/boost
From: Alexander.Nasonov_at_[hidden]
Date: 2008-12-04 17:22:40


Author: nasonov
Date: 2008-12-04 17:22:39 EST (Thu, 04 Dec 2008)
New Revision: 50120
URL: http://svn.boost.org/trac/boost/changeset/50120

Log:
Fixes #2311: any::operator= should have by-value argument
Text files modified:
   trunk/boost/any.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/any.hpp
==============================================================================
--- trunk/boost/any.hpp (original)
+++ trunk/boost/any.hpp 2008-12-04 17:22:39 EST (Thu, 04 Dec 2008)
@@ -61,9 +61,9 @@
             return *this;
         }
 
- any & operator=(const any & rhs)
+ any & operator=(any rhs)
         {
- any(rhs).swap(*this);
+ rhs.swap(*this);
             return *this;
         }