Wrong member variable settings bug fix. (Ticket #95)
authorBalazs Dezso <deba@inf.elte.hu>
Sun, 25 May 2008 17:01:11 +0200
changeset 158500f3cbff9e4
parent 157 2ccc1afc2c52
child 159 c7d30f7810e5
child 160 b1bd0c2a7f57
Wrong member variable settings bug fix. (Ticket #95)
lemon/bfs.h
lemon/dfs.h
     1.1 --- a/lemon/bfs.h	Sat May 24 23:20:49 2008 +0200
     1.2 +++ b/lemon/bfs.h	Sun May 25 17:01:11 2008 +0200
     1.3 @@ -1016,7 +1016,7 @@
     1.4      template<class T>
     1.5      BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) 
     1.6      {
     1.7 -      Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     1.8 +      Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
     1.9        return BfsWizard<DefReachedMapBase<T> >(*this);
    1.10      }
    1.11      
    1.12 @@ -1037,7 +1037,7 @@
    1.13      template<class T>
    1.14      BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) 
    1.15      {
    1.16 -      Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
    1.17 +      Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
    1.18        return BfsWizard<DefProcessedMapBase<T> >(*this);
    1.19      }
    1.20      
     2.1 --- a/lemon/dfs.h	Sat May 24 23:20:49 2008 +0200
     2.2 +++ b/lemon/dfs.h	Sun May 25 17:01:11 2008 +0200
     2.3 @@ -999,7 +999,7 @@
     2.4      template<class T>
     2.5      DfsWizard<DefReachedMapBase<T> > reachedMap(const T &t) 
     2.6      {
     2.7 -      Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     2.8 +      Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
     2.9        return DfsWizard<DefReachedMapBase<T> >(*this);
    2.10      }
    2.11      
    2.12 @@ -1020,7 +1020,7 @@
    2.13      template<class T>
    2.14      DfsWizard<DefProcessedMapBase<T> > processedMap(const T &t) 
    2.15      {
    2.16 -      Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
    2.17 +      Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
    2.18        return DfsWizard<DefProcessedMapBase<T> >(*this);
    2.19      }
    2.20