[Lemon-commits] [lemon_svn] deba: r2188 - hugo/trunk/lemon/bits

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:50:47 CET 2006


Author: deba
Date: Thu Sep  1 14:14:14 2005
New Revision: 2188

Modified:
   hugo/trunk/lemon/bits/default_map.h

Log:
Bug fix.

Default assign operator should be
overrided by that calls the template
assign operator.



Modified: hugo/trunk/lemon/bits/default_map.h
==============================================================================
--- hugo/trunk/lemon/bits/default_map.h	(original)
+++ hugo/trunk/lemon/bits/default_map.h	Thu Sep  1 14:14:14 2005
@@ -171,6 +171,11 @@
       NodeMap(const Graph& _g, const _Value& _v) 
 	: Parent(_g, _v) {}
 
+      NodeMap& operator=(const NodeMap& cmap) {
+	return operator=<NodeMap>(cmap);
+      }
+
+
       /// \brief Template assign operator.
       ///
       /// The given parameter should be conform to the ReadMap
@@ -202,6 +207,10 @@
       EdgeMap(const Graph& _g, const _Value& _v) 
 	: Parent(_g, _v) {}
 
+      EdgeMap& operator=(const EdgeMap& cmap) {
+	return operator=<EdgeMap>(cmap);
+      }
+
       template <typename CMap>
       EdgeMap& operator=(const CMap& cmap) {
 	checkConcept<concept::ReadMap<Edge, _Value>, CMap>();
@@ -240,6 +249,10 @@
       UndirEdgeMap(const Graph& _g, const _Value& _v) 
 	: Parent(_g, _v) {}
 
+      UndirEdgeMap& operator=(const UndirEdgeMap& cmap) {
+	return operator=<UndirEdgeMap>(cmap);
+      }
+
       template <typename CMap>
       UndirEdgeMap& operator=(const CMap& cmap) {
 	checkConcept<concept::ReadMap<UndirEdge, _Value>, CMap>();



More information about the Lemon-commits mailing list