Invalid assignments ambiguity handling
authordeba
Fri, 31 Aug 2007 08:40:49 +0000
changeset 2469d6f12a9b5cbf
parent 2468 16615642ac7b
child 2470 46818ce27a60
Invalid assignments ambiguity handling
lemon/bits/base_extender.h
     1.1 --- a/lemon/bits/base_extender.h	Tue Aug 28 14:13:40 2007 +0000
     1.2 +++ b/lemon/bits/base_extender.h	Fri Aug 31 08:40:49 2007 +0000
     1.3 @@ -309,6 +309,10 @@
     1.4          return *this;
     1.5        }
     1.6        ANode(Invalid) : Node(INVALID) {}
     1.7 +      ANode& operator=(Invalid) {
     1.8 +        Node::operator=(INVALID);
     1.9 +        return *this;
    1.10 +      }
    1.11      };
    1.12  
    1.13      void first(ANode& node) const {
    1.14 @@ -337,6 +341,10 @@
    1.15          return *this;
    1.16        }
    1.17        BNode(Invalid) : Node(INVALID) {}
    1.18 +      BNode& operator=(Invalid) {
    1.19 +        Node::operator=(INVALID);
    1.20 +        return *this;
    1.21 +      }
    1.22      };
    1.23  
    1.24      void first(BNode& node) const {