# HG changeset patch # User deba # Date 1211733305 0 # Node ID b526b87d8c2f78bdc889d70b520719ff5a3d29bc # Parent 52cf8f8f25b48d66e6607e9112b0c66aa784f10f Fixing bug in named parameters (Back port bug fix of ticket #95) diff -r 52cf8f8f25b4 -r b526b87d8c2f lemon/bfs.h --- a/lemon/bfs.h Fri May 23 10:55:41 2008 +0000 +++ b/lemon/bfs.h Sun May 25 16:35:05 2008 +0000 @@ -1018,7 +1018,7 @@ template BfsWizard > reachedMap(const T &t) { - Base::_pred=reinterpret_cast(const_cast(&t)); + Base::_reached=reinterpret_cast(const_cast(&t)); return BfsWizard >(*this); } @@ -1039,7 +1039,7 @@ template BfsWizard > processedMap(const T &t) { - Base::_pred=reinterpret_cast(const_cast(&t)); + Base::_processed=reinterpret_cast(const_cast(&t)); return BfsWizard >(*this); } diff -r 52cf8f8f25b4 -r b526b87d8c2f lemon/dfs.h --- a/lemon/dfs.h Fri May 23 10:55:41 2008 +0000 +++ b/lemon/dfs.h Sun May 25 16:35:05 2008 +0000 @@ -1001,7 +1001,7 @@ template DfsWizard > reachedMap(const T &t) { - Base::_pred=reinterpret_cast(const_cast(&t)); + Base::_reached=reinterpret_cast(const_cast(&t)); return DfsWizard >(*this); } @@ -1022,7 +1022,7 @@ template DfsWizard > processedMap(const T &t) { - Base::_pred=reinterpret_cast(const_cast(&t)); + Base::_processed=reinterpret_cast(const_cast(&t)); return DfsWizard >(*this); }