COIN-OR::LEMON - Graph Library

Changeset 1685:5b37a10234bc in lemon-0.x


Ignore:
Timestamp:
09/16/05 11:00:18 (14 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@2207
Message:

Some bugfixes

Location:
lemon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/alteration_notifier.h

    r1587 r1685  
    8181      ObserverBase() : registry(0) {}
    8282
     83      ObserverBase(const ObserverBase& copy) {
     84        if (copy.attached()) {
     85          copy.getRegistry()->attach(*this);
     86        }
     87      }
     88       
    8389      virtual ~ObserverBase() {}
    8490
     
    112118      /// Gives back true when the observer is attached into a registry.
    113119      bool attached() const { return registry != 0; }
    114        
     120
    115121    private:
    116122
    117       ObserverBase(const ObserverBase& copy);
    118123      ObserverBase& operator=(const ObserverBase& copy);
    119124
  • lemon/graph_adaptor.h

    r1681 r1685  
    680680  public:
    681681    typedef SubGraphAdaptor<Graph, ConstMap<typename Graph::Node,bool>,
    682                             EdgeFilterMap> Parent;
     682                            EdgeFilterMap, false> Parent;
    683683  protected:
    684684    ConstMap<typename Graph::Node, bool> const_true_map;
  • lemon/iterable_maps.h

    r1677 r1685  
    141141  class IterableBoolNodeMap
    142142  {
    143     typename Graph::NodeMap<int> cmap;
    144  
    145   public:
    146  
    147     typedef IterableBoolMap<typename Graph::NodeMap<int> > BimType;
     143    typename Graph::template NodeMap<int> cmap;
     144 
     145  public:
     146 
     147    typedef IterableBoolMap<typename Graph::template NodeMap<int> > BimType;
    148148    BimType imap;
    149149
     
    199199  class IterableBoolEdgeMap
    200200  {
    201     typename Graph::EdgeMap<int> cmap;
    202  
    203   public:
    204  
    205     typedef IterableBoolMap<typename Graph::EdgeMap<int> > BimType;
     201    typename Graph::template EdgeMap<int> cmap;
     202 
     203  public:
     204 
     205    typedef IterableBoolMap<typename Graph::template EdgeMap<int> > BimType;
    206206    BimType imap;
    207207
Note: See TracChangeset for help on using the changeset viewer.