more explicit :)
authorklao
Thu, 13 Apr 2006 17:57:03 +0000
changeset 204666d160810c0a
parent 2045 012cd0ca3254
child 2047 2b2ebca059ee
more explicit :)
lemon/bits/array_map.h
lemon/bits/default_map.h
lemon/bits/edge_set_extender.h
lemon/bits/graph_extender.h
     1.1 --- a/lemon/bits/array_map.h	Thu Apr 13 17:22:17 2006 +0000
     1.2 +++ b/lemon/bits/array_map.h	Thu Apr 13 17:57:03 2006 +0000
     1.3 @@ -78,7 +78,7 @@
     1.4      /// \brief Graph initialized map constructor.
     1.5      ///
     1.6      /// Graph initialized map constructor.
     1.7 -    ArrayMap(const Graph& graph) {
     1.8 +    explicit ArrayMap(const Graph& graph) {
     1.9        Parent::attach(graph.getNotifier(Item()));
    1.10        allocate_memory();
    1.11        Notifier* notifier = Parent::getNotifier();
     2.1 --- a/lemon/bits/default_map.h	Thu Apr 13 17:22:17 2006 +0000
     2.2 +++ b/lemon/bits/default_map.h	Thu Apr 13 17:57:03 2006 +0000
     2.3 @@ -159,7 +159,7 @@
     2.4      typedef typename Parent::Graph Graph;
     2.5      typedef typename Parent::Value Value;
     2.6  
     2.7 -    DefaultMap(const Graph& graph) : Parent(graph) {}
     2.8 +    explicit DefaultMap(const Graph& graph) : Parent(graph) {}
     2.9      DefaultMap(const Graph& graph, const Value& value) 
    2.10        : Parent(graph, value) {}
    2.11  
     3.1 --- a/lemon/bits/edge_set_extender.h	Thu Apr 13 17:22:17 2006 +0000
     3.2 +++ b/lemon/bits/edge_set_extender.h	Thu Apr 13 17:57:03 2006 +0000
     3.3 @@ -224,7 +224,7 @@
     3.4        typedef EdgeSetExtender Graph;
     3.5        typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
     3.6  
     3.7 -      EdgeMap(const Graph& _g) 
     3.8 +      explicit EdgeMap(const Graph& _g) 
     3.9  	: Parent(_g) {}
    3.10        EdgeMap(const Graph& _g, const _Value& _v) 
    3.11  	: Parent(_g, _v) {}
     4.1 --- a/lemon/bits/graph_extender.h	Thu Apr 13 17:22:17 2006 +0000
     4.2 +++ b/lemon/bits/graph_extender.h	Thu Apr 13 17:57:03 2006 +0000
     4.3 @@ -223,7 +223,7 @@
     4.4        typedef GraphExtender Graph;
     4.5        typedef MapExtender<DefaultMap<Graph, Node, _Value> > Parent;
     4.6  
     4.7 -      NodeMap(const Graph& graph) 
     4.8 +      explicit NodeMap(const Graph& graph) 
     4.9  	: Parent(graph) {}
    4.10        NodeMap(const Graph& graph, const _Value& value) 
    4.11  	: Parent(graph, value) {}
    4.12 @@ -247,7 +247,7 @@
    4.13        typedef GraphExtender Graph;
    4.14        typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
    4.15  
    4.16 -      EdgeMap(const Graph& graph) 
    4.17 +      explicit EdgeMap(const Graph& graph) 
    4.18  	: Parent(graph) {}
    4.19        EdgeMap(const Graph& graph, const _Value& value) 
    4.20  	: Parent(graph, value) {}