diff -r a4fc9c5dcee5 -r cc5eb73a3a93 src/work/alpar/emptygraph.h --- a/src/work/alpar/emptygraph.h Tue Feb 03 12:41:29 2004 +0000 +++ b/src/work/alpar/emptygraph.h Tue Feb 03 12:42:54 2004 +0000 @@ -1,6 +1,5 @@ // -*-mode: c++; -*- -template class Graph { public: @@ -54,7 +53,7 @@ typedef T value_type; void set(const NodeIt i, const T &t); T get(const NodeIt i) const; - T operator[](const NodeIt i); + T &operator[](const NodeIt i); NodeMap(const Graph &G); }; @@ -65,7 +64,7 @@ typedef T value_type; void set(const EdgeIt i, const T &t); T get(const EdgeIt i) const; - T operator[](const EdgeIt i); + T &operator[](const EdgeIt i); EdgeMap(const Graph &G); };