Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54020 - trunk/boost/flyweight
From: joaquin_at_[hidden]
Date: 2009-06-17 15:02:41


Author: joaquin
Date: 2009-06-17 15:02:41 EDT (Wed, 17 Jun 2009)
New Revision: 54020
URL: http://svn.boost.org/trac/boost/changeset/54020

Log:
fixed potentially pessimizing lack of a &
Text files modified:
   trunk/boost/flyweight/flyweight.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/flyweight/flyweight.hpp
==============================================================================
--- trunk/boost/flyweight/flyweight.hpp (original)
+++ trunk/boost/flyweight/flyweight.hpp 2009-06-17 15:02:41 EDT (Wed, 17 Jun 2009)
@@ -1,6 +1,6 @@
 /* Flyweight class.
  *
- * Copyright 2006-2008 Joaquin M Lopez Munoz.
+ * Copyright 2006-2009 Joaquin M Lopez Munoz.
  * 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)
@@ -193,7 +193,7 @@
   :h(core::insert(BOOST_PP_ENUM_PARAMS(n,t))){}
 #include <boost/flyweight/detail/perfect_fwd.hpp>
 
- flyweight& operator=(const flyweight x){h=x.h;return *this;}
+ flyweight& operator=(const flyweight& x){h=x.h;return *this;}
   flyweight& operator=(const value_type& x){return operator=(flyweight(x));}
 
   /* convertibility to underlying type */


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