[Lemon-commits] Balazs Dezso: Wrong member variable settings bug...
Lemon HG
hg at lemon.cs.elte.hu
Sun May 25 22:22:21 CEST 2008
details: http://lemon.cs.elte.hu/hg/lemon/rev/500f3cbff9e4
changeset: 158:500f3cbff9e4
user: Balazs Dezso <deba [at] inf.elte.hu>
date: Sun May 25 17:01:11 2008 +0200
description:
Wrong member variable settings bug fix. (Ticket #95)
diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
lemon/bfs.h | 4 ++--
lemon/dfs.h | 4 ++--
diffs (42 lines):
diff -r 2ccc1afc2c52 -r 500f3cbff9e4 lemon/bfs.h
--- a/lemon/bfs.h Sat May 24 23:20:49 2008 +0200
+++ b/lemon/bfs.h Sun May 25 17:01:11 2008 +0200
@@ -1016,7 +1016,7 @@
template<class T>
BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t)
{
- Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
+ Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
return BfsWizard<DefReachedMapBase<T> >(*this);
}
@@ -1037,7 +1037,7 @@
template<class T>
BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t)
{
- Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
+ Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
return BfsWizard<DefProcessedMapBase<T> >(*this);
}
diff -r 2ccc1afc2c52 -r 500f3cbff9e4 lemon/dfs.h
--- a/lemon/dfs.h Sat May 24 23:20:49 2008 +0200
+++ b/lemon/dfs.h Sun May 25 17:01:11 2008 +0200
@@ -999,7 +999,7 @@
template<class T>
DfsWizard<DefReachedMapBase<T> > reachedMap(const T &t)
{
- Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
+ Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
return DfsWizard<DefReachedMapBase<T> >(*this);
}
@@ -1020,7 +1020,7 @@
template<class T>
DfsWizard<DefProcessedMapBase<T> > processedMap(const T &t)
{
- Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
+ Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
return DfsWizard<DefProcessedMapBase<T> >(*this);
}
More information about the Lemon-commits
mailing list