COIN-OR::LEMON - Graph Library

Changeset 1672:85e30ec7c957 in lemon-0.x


Ignore:
Timestamp:
09/01/05 14:14:14 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2188
Message:

Bug fix.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/default_map.h

    r1669 r1672  
    171171      NodeMap(const Graph& _g, const _Value& _v)
    172172        : Parent(_g, _v) {}
     173
     174      NodeMap& operator=(const NodeMap& cmap) {
     175        return operator=<NodeMap>(cmap);
     176      }
     177
    173178
    174179      /// \brief Template assign operator.
     
    203208        : Parent(_g, _v) {}
    204209
     210      EdgeMap& operator=(const EdgeMap& cmap) {
     211        return operator=<EdgeMap>(cmap);
     212      }
     213
    205214      template <typename CMap>
    206215      EdgeMap& operator=(const CMap& cmap) {
     
    241250        : Parent(_g, _v) {}
    242251
     252      UndirEdgeMap& operator=(const UndirEdgeMap& cmap) {
     253        return operator=<UndirEdgeMap>(cmap);
     254      }
     255
    243256      template <typename CMap>
    244257      UndirEdgeMap& operator=(const CMap& cmap) {
Note: See TracChangeset for help on using the changeset viewer.