# HG changeset patch # User klao # Date 1144948937 0 # Node ID 012cd0ca3254509685e2a0cdce85e28ffff2300f # Parent 83b086406f107f121e5d296298c94d6e6c6cfcb3 path.h: bugfix, returning reference to a temporary diff -r 83b086406f10 -r 012cd0ca3254 lemon/path.h --- a/lemon/path.h Wed Apr 12 20:50:35 2006 +0000 +++ b/lemon/path.h Thu Apr 13 17:22:17 2006 +0000 @@ -228,7 +228,7 @@ bool valid() const { return idx!=-1; } ///Conversion to Graph::Node - operator const GraphNode& () const { + operator GraphNode () const { if(idx >= p->length()) return p->target(); else if(idx >= 0)