Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66801 - trunk/boost/units
From: steven_at_[hidden]
Date: 2010-11-27 14:32:41


Author: steven_watanabe
Date: 2010-11-27 14:32:39 EST (Sat, 27 Nov 2010)
New Revision: 66801
URL: http://svn.boost.org/trac/boost/changeset/66801

Log:
add missing return
Text files modified:
   trunk/boost/units/unit.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/units/unit.hpp
==============================================================================
--- trunk/boost/units/unit.hpp (original)
+++ trunk/boost/units/unit.hpp 2010-11-27 14:32:39 EST (Sat, 27 Nov 2010)
@@ -46,7 +46,7 @@
         unit(const this_type&) { }
         //~unit() { }
        
- this_type& operator=(const this_type&) { }
+ this_type& operator=(const this_type&) { return *this; }
         
         // sun will ignore errors resulting from templates
         // instantiated in the return type of a function.


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