COIN-OR::LEMON - Graph Library

Changeset 230:af4e8ba94294 in lemon for lemon


Ignore:
Timestamp:
07/23/08 15:24:52 (16 years ago)
Author:
Balazs Dezso <deba@…>
Branch:
default
Phase:
public
Message:

Fix ImmediateDetach? in AlterationObserver? (ticket #130)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/alteration_notifier.h

    r220 r230  
    410410          ++it;
    411411        } catch (const ImmediateDetach&) {
    412           it = _observers.erase(it);
    413412          (*it)->_index = _observers.end();
    414413          (*it)->_notifier = 0;
     414          it = _observers.erase(it);
    415415        }
    416416      }
     
    430430          ++it;
    431431        } catch (const ImmediateDetach&) {
    432           it = _observers.erase(it);
    433432          (*it)->_index = _observers.end();
    434433          (*it)->_notifier = 0;
     434          it = _observers.erase(it);
    435435        }
    436436      }
     
    469469          ++it;
    470470        } catch (const ImmediateDetach&) {
    471           it = _observers.erase(it);
    472471          (*it)->_index = _observers.end();
    473472          (*it)->_notifier = 0;
     473          it = _observers.erase(it);
    474474        }
    475475      }
Note: See TracChangeset for help on using the changeset viewer.