.
authoralpar
Tue, 03 Feb 2004 12:42:54 +0000
changeset 53cc5eb73a3a93
parent 52 a4fc9c5dcee5
child 54 acd0dc288149
.
src/work/alpar/emptygraph.h
     1.1 --- a/src/work/alpar/emptygraph.h	Tue Feb 03 12:41:29 2004 +0000
     1.2 +++ b/src/work/alpar/emptygraph.h	Tue Feb 03 12:42:54 2004 +0000
     1.3 @@ -1,6 +1,5 @@
     1.4  // -*-mode: c++; -*-
     1.5  
     1.6 -template <class N, class E>
     1.7  class Graph
     1.8  {
     1.9  public:
    1.10 @@ -54,7 +53,7 @@
    1.11      typedef T value_type;
    1.12      void set(const NodeIt i, const T &t);
    1.13      T get(const NodeIt i) const;
    1.14 -    T operator[](const NodeIt i);
    1.15 +    T &operator[](const NodeIt i);
    1.16        
    1.17      NodeMap(const Graph &G);
    1.18    };
    1.19 @@ -65,7 +64,7 @@
    1.20      typedef T value_type;
    1.21      void set(const EdgeIt i, const T &t);
    1.22      T get(const EdgeIt i) const;
    1.23 -    T operator[](const EdgeIt i);
    1.24 +    T &operator[](const EdgeIt i);
    1.25        
    1.26      EdgeMap(const Graph &G);
    1.27    };