$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: sundman.anders_at_[hidden]
Date: 2008-05-16 12:46:53
Author: asundman
Date: 2008-05-16 12:46:53 EDT (Fri, 16 May 2008)
New Revision: 45432
URL: http://svn.boost.org/trac/boost/changeset/45432
Log:
Fixed return and self assign check.
Text files modified: 
   sandbox/cluster/boost/algorithm/cluster/cluster_data.hpp |     8 +++++++-                                
   1 files changed, 7 insertions(+), 1 deletions(-)
Modified: sandbox/cluster/boost/algorithm/cluster/cluster_data.hpp
==============================================================================
--- sandbox/cluster/boost/algorithm/cluster/cluster_data.hpp	(original)
+++ sandbox/cluster/boost/algorithm/cluster/cluster_data.hpp	2008-05-16 12:46:53 EDT (Fri, 16 May 2008)
@@ -28,7 +28,13 @@
 
   cluster_data(cluster_data const & c) : m_pClusters(c.m_pClusters) {}
   cluster_data const & operator=(cluster_data const & rhs)
-  { m_pClusters = rhs.m_pClusters; }
+  { 
+      if (this != &rhs) 
+      {
+        m_pClusters = rhs.m_pClusters; 
+      }
+      return *this;
+  }
 
   typedef typename clusters::iterator iterator;
   typedef typename clusters::const_iterator const_iterator;