Bug fix
authordeba
Tue, 31 Jan 2006 20:14:52 +0000
changeset 1934272fa8a0b680
parent 1933 a876a3d6a4c7
child 1935 67b38d699ea7
Bug fix

ANodeIt/BNodeIt should not be inherited from ANode/BNode

The reason:
assert(graph.id(ANodeIt(graph)) == graph.id((Node)ANodeIt(graph)));
lemon/bits/iterable_graph_extender.h
     1.1 --- a/lemon/bits/iterable_graph_extender.h	Tue Jan 31 20:04:36 2006 +0000
     1.2 +++ b/lemon/bits/iterable_graph_extender.h	Tue Jan 31 20:14:52 2006 +0000
     1.3 @@ -303,7 +303,7 @@
     1.4  
     1.5      };
     1.6  
     1.7 -    class ANodeIt : public ANode { 
     1.8 +    class ANodeIt : public Node { 
     1.9        friend class IterableBpUGraphExtender;
    1.10        const Graph* graph;
    1.11      public:
    1.12 @@ -325,7 +325,7 @@
    1.13        }
    1.14      };
    1.15  
    1.16 -    class BNodeIt : public BNode { 
    1.17 +    class BNodeIt : public Node { 
    1.18        friend class IterableBpUGraphExtender;
    1.19        const Graph* graph;
    1.20      public: