COIN-OR::LEMON - Graph Library

Changeset 713:1993af615e68 in lemon


Ignore:
Timestamp:
05/12/09 16:02:18 (15 years ago)
Author:
Alpar Juttner <alpar@…>
Branch:
default
Phase:
public
Message:

Resolve GCC-4.4 warnings & fix ambiguous op=() in graph_components.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/concepts/graph_components.h

    r664 r713  
    7272      GraphItem& operator=(const GraphItem&) { return *this; }
    7373
     74      /// \brief Assignment operator for INVALID.
     75      ///
     76      /// This operator makes the item invalid.
     77      GraphItem& operator=(Invalid) { return *this; }
     78
    7479      /// \brief Equality operator.
    7580      ///
     
    97102        void constraints() {
    98103          _GraphItem i1;
     104          i1=INVALID;
    99105          _GraphItem i2 = i1;
    100106          _GraphItem i3 = INVALID;
     
    222228        /// be convertible to the represented edge.
    223229        Edge(const Arc&) {}
    224 
    225         /// \brief Assign an arc to an edge.
    226         ///
    227         /// This function assigns an arc to an edge.
    228         /// Besides the core graph item functionality each arc should
    229         /// be convertible to the represented edge.
    230         Edge& operator=(const Arc&) { return *this; }
    231       };
     230     };
    232231
    233232      /// \brief Return one end node of an edge.
     
    354353          checkConcept<Base, _Digraph >();
    355354          typename _Digraph::Node node;
     355          node=INVALID;
    356356          int nid = digraph.id(node);
    357357          nid = digraph.id(node);
    358358          node = digraph.nodeFromId(nid);
    359359          typename _Digraph::Arc arc;
     360          arc=INVALID;
    360361          int eid = digraph.id(arc);
    361362          eid = digraph.id(arc);
Note: See TracChangeset for help on using the changeset viewer.