# HG changeset patch # User deba # Date 1125576854 0 # Node ID 85e30ec7c9574921c59e784650868671cc61a864 # Parent 3c82a0d9e0e744860f161caf2335f59cf5500721 Bug fix. Default assign operator should be overrided by that calls the template assign operator. diff -r 3c82a0d9e0e7 -r 85e30ec7c957 lemon/bits/default_map.h --- a/lemon/bits/default_map.h Wed Aug 31 23:14:58 2005 +0000 +++ b/lemon/bits/default_map.h Thu Sep 01 12:14:14 2005 +0000 @@ -171,6 +171,11 @@ NodeMap(const Graph& _g, const _Value& _v) : Parent(_g, _v) {} + NodeMap& operator=(const NodeMap& cmap) { + return operator=(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=(cmap); + } + template EdgeMap& operator=(const CMap& cmap) { checkConcept, CMap>(); @@ -240,6 +249,10 @@ UndirEdgeMap(const Graph& _g, const _Value& _v) : Parent(_g, _v) {} + UndirEdgeMap& operator=(const UndirEdgeMap& cmap) { + return operator=(cmap); + } + template UndirEdgeMap& operator=(const CMap& cmap) { checkConcept, CMap>();