# HG changeset patch
# User Balazs Dezso <deba@inf.elte.hu>
# Date 1211727671 -7200
# Node ID 500f3cbff9e4ad090ac07241a7e885f70d82d9ab
# Parent 2ccc1afc2c5235526c8b5adcb494f1f8e659cdaa
Wrong member variable settings bug fix. (Ticket #95)
diff -r 2ccc1afc2c52 -r 500f3cbff9e4 lemon/bfs.h
a
|
b
|
|
1016 | 1016 | template<class T> |
1017 | 1017 | BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) |
1018 | 1018 | { |
1019 | | Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1019 | Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t)); |
1020 | 1020 | return BfsWizard<DefReachedMapBase<T> >(*this); |
1021 | 1021 | } |
1022 | 1022 | |
… |
… |
|
1037 | 1037 | template<class T> |
1038 | 1038 | BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) |
1039 | 1039 | { |
1040 | | Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1040 | Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t)); |
1041 | 1041 | return BfsWizard<DefProcessedMapBase<T> >(*this); |
1042 | 1042 | } |
1043 | 1043 | |
diff -r 2ccc1afc2c52 -r 500f3cbff9e4 lemon/dfs.h
a
|
b
|
|
999 | 999 | template<class T> |
1000 | 1000 | DfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) |
1001 | 1001 | { |
1002 | | Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1002 | Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t)); |
1003 | 1003 | return DfsWizard<DefReachedMapBase<T> >(*this); |
1004 | 1004 | } |
1005 | 1005 | |
… |
… |
|
1020 | 1020 | template<class T> |
1021 | 1021 | DfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) |
1022 | 1022 | { |
1023 | | Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t)); |
| 1023 | Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t)); |
1024 | 1024 | return DfsWizard<DefProcessedMapBase<T> >(*this); |
1025 | 1025 | } |
1026 | 1026 | |