diff -r 0759d974de81 -r 4add05447ca0 lemon/bellman_ford.h --- a/lemon/bellman_ford.h Sun Jan 05 22:24:56 2014 +0100 +++ b/lemon/bellman_ford.h Tue Apr 14 08:39:40 2015 +0200 @@ -701,8 +701,8 @@ /// like an STL container (by having begin() and end()) /// which you can use in range-based for loops, STL algorithms, etc. LemonRangeWrapper1 - activeNodes(const BellmanFord& algorithm) const { - return LemonRangeWrapper1(algorithm); + activeNodes() const { + return LemonRangeWrapper1(*this); }