Call the default constructor of the ObserverBase.
authordeba
Tue, 19 Apr 2005 13:33:44 +0000
changeset 1374bcfa3980b432
parent 1373 284841d50d63
child 1375 ebdce4f68ac4
Call the default constructor of the ObserverBase.
src/lemon/bits/array_map.h
src/lemon/bits/vector_map.h
     1.1 --- a/src/lemon/bits/array_map.h	Tue Apr 19 06:51:37 2005 +0000
     1.2 +++ b/src/lemon/bits/array_map.h	Tue Apr 19 13:33:44 2005 +0000
     1.3 @@ -96,7 +96,7 @@
     1.4  
     1.5      /** Constructor to copy a map of the same map type.
     1.6       */
     1.7 -    ArrayMap(const ArrayMap& copy) {
     1.8 +    ArrayMap(const ArrayMap& copy) : Parent() {
     1.9        if (copy.attached()) {
    1.10  	attach(*copy.getRegistry());
    1.11        }
     2.1 --- a/src/lemon/bits/vector_map.h	Tue Apr 19 06:51:37 2005 +0000
     2.2 +++ b/src/lemon/bits/vector_map.h	Tue Apr 19 13:33:44 2005 +0000
     2.3 @@ -109,7 +109,8 @@
     2.4        container.resize(graph->maxId(_Item()) + 1, _v);
     2.5      }
     2.6  
     2.7 -    VectorMap(const VectorMap& _copy) : graph(_copy.getGraph()) {
     2.8 +    VectorMap(const VectorMap& _copy) 
     2.9 +      : Parent(), graph(_copy.getGraph()) {
    2.10        if (_copy.attached()) {
    2.11  	attach(*_copy.getRegistry());
    2.12  	container = _copy.container;