lemon/concepts/graph_components.h
changeset 279 6307bbbf285b
parent 220 a5d8c039f218
child 313 64f8f7cc6168
     1.1 --- a/lemon/concepts/graph_components.h	Mon Sep 22 15:33:23 2008 +0200
     1.2 +++ b/lemon/concepts/graph_components.h	Tue Sep 23 18:42:49 2008 +0200
     1.3 @@ -1005,6 +1005,8 @@
     1.4        ///
     1.5        /// Construct a new map for the graph and initalise the values.
     1.6        GraphMap(const Graph&, const Value&) {}
     1.7 +
     1.8 +    private:
     1.9        /// \brief Copy constructor.
    1.10        ///
    1.11        /// Copy Constructor.
    1.12 @@ -1021,6 +1023,7 @@
    1.13          return *this;
    1.14        }
    1.15  
    1.16 +    public:
    1.17        template<typename _Map>
    1.18        struct Constraints {
    1.19          void constraints() {
    1.20 @@ -1030,13 +1033,14 @@
    1.21            // Constructor with a graph and a default value parameter
    1.22            _Map a2(g,t);
    1.23            // Copy constructor.
    1.24 -          _Map b(c);
    1.25 +          // _Map b(c);
    1.26  
    1.27 -          ReadMap<Key, Value> cmap;
    1.28 -          b = cmap;
    1.29 +          // ReadMap<Key, Value> cmap;
    1.30 +          // b = cmap;
    1.31  
    1.32 +          ignore_unused_variable_warning(a);
    1.33            ignore_unused_variable_warning(a2);
    1.34 -          ignore_unused_variable_warning(b);
    1.35 +          // ignore_unused_variable_warning(b);
    1.36          }
    1.37  
    1.38          const _Map &c;
    1.39 @@ -1082,6 +1086,7 @@
    1.40          NodeMap(const MappableDigraphComponent& digraph, const _Value& value)
    1.41            : Parent(digraph, value) {}
    1.42  
    1.43 +      private:
    1.44          /// \brief Copy constructor.
    1.45          ///
    1.46          /// Copy Constructor.
    1.47 @@ -1119,6 +1124,7 @@
    1.48          ArcMap(const MappableDigraphComponent& digraph, const _Value& value)
    1.49            : Parent(digraph, value) {}
    1.50  
    1.51 +      private:
    1.52          /// \brief Copy constructor.
    1.53          ///
    1.54          /// Copy Constructor.
    1.55 @@ -1215,6 +1221,7 @@
    1.56          EdgeMap(const MappableGraphComponent& graph, const _Value& value)
    1.57            : Parent(graph, value) {}
    1.58  
    1.59 +      private:
    1.60          /// \brief Copy constructor.
    1.61          ///
    1.62          /// Copy Constructor.