diff --git a/lemon/bfs.h b/lemon/bfs.h --- a/lemon/bfs.h +++ b/lemon/bfs.h @@ -1016,7 +1016,7 @@ template BfsWizard > reachedMap(const T &t) { - Base::_pred=reinterpret_cast(const_cast(&t)); + Base::_reached=reinterpret_cast(const_cast(&t)); return BfsWizard >(*this); } @@ -1037,7 +1037,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 --git a/lemon/dfs.h b/lemon/dfs.h --- a/lemon/dfs.h +++ b/lemon/dfs.h @@ -999,7 +999,7 @@ template DfsWizard > reachedMap(const T &t) { - Base::_pred=reinterpret_cast(const_cast(&t)); + Base::_reached=reinterpret_cast(const_cast(&t)); return DfsWizard >(*this); } @@ -1020,7 +1020,7 @@ template DfsWizard > processedMap(const T &t) { - Base::_pred=reinterpret_cast(const_cast(&t)); + Base::_processed=reinterpret_cast(const_cast(&t)); return DfsWizard >(*this); }