gravatar
alpar (Alpar Juttner)
alpar@cs.elte.hu
Resolve GCC-4.4 warnings & fix ambiguous op=() in graph_components.h
0 1 0
default
1 file changed with 9 insertions and 8 deletions:
↑ Collapse diff ↑
Ignore white space 2 line context
... ...
@@ -73,2 +73,7 @@
73 73

	
74
      /// \brief Assignment operator for INVALID.
75
      ///
76
      /// This operator makes the item invalid.
77
      GraphItem& operator=(Invalid) { return *this; }
78

	
74 79
      /// \brief Equality operator.
... ...
@@ -98,2 +103,3 @@
98 103
          _GraphItem i1;
104
          i1=INVALID;
99 105
          _GraphItem i2 = i1;
... ...
@@ -223,10 +229,3 @@
223 229
        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
     };
232 231

	
... ...
@@ -355,2 +354,3 @@
355 354
          typename _Digraph::Node node;
355
          node=INVALID;
356 356
          int nid = digraph.id(node);
... ...
@@ -359,2 +359,3 @@
359 359
          typename _Digraph::Arc arc;
360
          arc=INVALID;
360 361
          int eid = digraph.id(arc);
0 comments (0 inline)