COIN-OR::LEMON - Graph Library

Changeset 1685:5b37a10234bc in lemon-0.x for lemon/bits


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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.