COIN-OR::LEMON - Graph Library

Changeset 2611:b526b87d8c2f in lemon-0.x


Ignore:
Timestamp:
05/25/08 18:35:05 (11 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@3495
Message:

Fixing bug in named parameters (Back port bug fix of ticket #95)

Location:
lemon
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lemon/bfs.h

    r2553 r2611  
    10191019    BfsWizard<DefReachedMapBase<T> > reachedMap(const T &t)
    10201020    {
    1021       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     1021      Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
    10221022      return BfsWizard<DefReachedMapBase<T> >(*this);
    10231023    }
     
    10401040    BfsWizard<DefProcessedMapBase<T> > processedMap(const T &t)
    10411041    {
    1042       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     1042      Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
    10431043      return BfsWizard<DefProcessedMapBase<T> >(*this);
    10441044    }
  • lemon/dfs.h

    r2553 r2611  
    10021002    DfsWizard<DefReachedMapBase<T> > reachedMap(const T &t)
    10031003    {
    1004       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     1004      Base::_reached=reinterpret_cast<void*>(const_cast<T*>(&t));
    10051005      return DfsWizard<DefReachedMapBase<T> >(*this);
    10061006    }
     
    10231023    DfsWizard<DefProcessedMapBase<T> > processedMap(const T &t)
    10241024    {
    1025       Base::_pred=reinterpret_cast<void*>(const_cast<T*>(&t));
     1025      Base::_processed=reinterpret_cast<void*>(const_cast<T*>(&t));
    10261026      return DfsWizard<DefProcessedMapBase<T> >(*this);
    10271027    }
Note: See TracChangeset for help on using the changeset viewer.