COIN-OR::LEMON - Graph Library

Changeset 158:500f3cbff9e4 in lemon-1.2


Ignore:
Timestamp:
05/25/08 17:01:11 (12 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Children:
159:c7d30f7810e5, 160:b1bd0c2a7f57
Phase:
public
Message:

Wrong member variable settings bug fix. (Ticket #95)

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/bfs.h

    r157 r158  
    10171017    BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t)
    10181018    {
    1019       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     1019      Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
    10201020      return BfsWizard<DefReachedMapBase<T> >(*this);
    10211021    }
     
    10381038    BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t)
    10391039    {
    1040       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     1040      Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
    10411041      return BfsWizard<DefProcessedMapBase<T> >(*this);
    10421042    }
  • lemon/dfs.h

    r157 r158  
    10001000    DfsWizard<DefReachedMapBase<T> > reachedMap(const T &t)
    10011001    {
    1002       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     1002      Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
    10031003      return DfsWizard<DefReachedMapBase<T> >(*this);
    10041004    }
     
    10211021    DfsWizard<DefProcessedMapBase<T> > processedMap(const T &t)
    10221022    {
    1023       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     1023      Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
    10241024      return DfsWizard<DefProcessedMapBase<T> >(*this);
    10251025    }
Note: See TracChangeset for help on using the changeset viewer.