path.h: bugfix, returning reference to a temporary
authorklao
Thu, 13 Apr 2006 17:22:17 +0000
changeset 2045012cd0ca3254
parent 2044 83b086406f10
child 2046 66d160810c0a
path.h: bugfix, returning reference to a temporary
lemon/path.h
     1.1 --- a/lemon/path.h	Wed Apr 12 20:50:35 2006 +0000
     1.2 +++ b/lemon/path.h	Thu Apr 13 17:22:17 2006 +0000
     1.3 @@ -228,7 +228,7 @@
     1.4        bool valid() const { return idx!=-1; }
     1.5  
     1.6        ///Conversion to Graph::Node
     1.7 -      operator const GraphNode& () const {
     1.8 +      operator GraphNode () const {
     1.9  	if(idx >= p->length())
    1.10  	  return p->target();
    1.11  	else if(idx >= 0)