lemon/graph_adaptor.h
changeset 1725 22752dd6c693
parent 1697 4c593a4096da
child 1755 bf267b301a5e
     1.1 --- a/lemon/graph_adaptor.h	Fri Oct 14 10:58:54 2005 +0000
     1.2 +++ b/lemon/graph_adaptor.h	Fri Oct 14 11:00:40 2005 +0000
     1.3 @@ -1526,13 +1526,14 @@
     1.4  	else {exit.set(key, val); }
     1.5        }
     1.6        
     1.7 -      typename ReferenceMapTraits<NodeImpl>::Reference 
     1.8 +      typename MapTraits<NodeImpl>::ReturnValue 
     1.9        operator[](const Node& key) {
    1.10  	if (key.entry) { return entry[key]; }
    1.11  	else { return exit[key]; }
    1.12        }
    1.13  
    1.14 -      T operator[](const Node& key) const {
    1.15 +      typename MapTraits<NodeImpl>::ConstReturnValue
    1.16 +      operator[](const Node& key) const {
    1.17  	if (key.entry) { return entry[key]; }
    1.18  	else { return exit[key]; }
    1.19        }
    1.20 @@ -1556,13 +1557,14 @@
    1.21  	else {bind.set(key.bind, val); }
    1.22        }
    1.23        
    1.24 -      typename ReferenceMapTraits<EdgeImpl>::Reference
    1.25 +      typename MapTraits<EdgeImpl>::ReturnValue
    1.26        operator[](const Edge& key) {
    1.27  	if ((typename Parent::Edge&)key != INVALID) { return orig[key]; }
    1.28  	else {return bind[key.bind]; }
    1.29        }
    1.30  
    1.31 -      T operator[](const Edge& key) const {
    1.32 +      typename MapTraits<EdgeImpl>::ConstReturnValue
    1.33 +      operator[](const Edge& key) const {
    1.34  	if ((typename Parent::Edge&)key != INVALID) { return orig[key]; }
    1.35  	else {return bind[key.bind]; }
    1.36        }