[Lemon-commits] [lemon_svn] klao: r2688 - hugo/trunk/lemon/bits
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:54:29 CET 2006
Author: klao
Date: Thu Apr 13 19:57:03 2006
New Revision: 2688
Modified:
hugo/trunk/lemon/bits/array_map.h
hugo/trunk/lemon/bits/default_map.h
hugo/trunk/lemon/bits/edge_set_extender.h
hugo/trunk/lemon/bits/graph_extender.h
Log:
more explicit :)
Modified: hugo/trunk/lemon/bits/array_map.h
==============================================================================
--- hugo/trunk/lemon/bits/array_map.h (original)
+++ hugo/trunk/lemon/bits/array_map.h Thu Apr 13 19:57:03 2006
@@ -78,7 +78,7 @@
/// \brief Graph initialized map constructor.
///
/// Graph initialized map constructor.
- ArrayMap(const Graph& graph) {
+ explicit ArrayMap(const Graph& graph) {
Parent::attach(graph.getNotifier(Item()));
allocate_memory();
Notifier* notifier = Parent::getNotifier();
Modified: hugo/trunk/lemon/bits/default_map.h
==============================================================================
--- hugo/trunk/lemon/bits/default_map.h (original)
+++ hugo/trunk/lemon/bits/default_map.h Thu Apr 13 19:57:03 2006
@@ -159,7 +159,7 @@
typedef typename Parent::Graph Graph;
typedef typename Parent::Value Value;
- DefaultMap(const Graph& graph) : Parent(graph) {}
+ explicit DefaultMap(const Graph& graph) : Parent(graph) {}
DefaultMap(const Graph& graph, const Value& value)
: Parent(graph, value) {}
Modified: hugo/trunk/lemon/bits/edge_set_extender.h
==============================================================================
--- hugo/trunk/lemon/bits/edge_set_extender.h (original)
+++ hugo/trunk/lemon/bits/edge_set_extender.h Thu Apr 13 19:57:03 2006
@@ -224,7 +224,7 @@
typedef EdgeSetExtender Graph;
typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
- EdgeMap(const Graph& _g)
+ explicit EdgeMap(const Graph& _g)
: Parent(_g) {}
EdgeMap(const Graph& _g, const _Value& _v)
: Parent(_g, _v) {}
Modified: hugo/trunk/lemon/bits/graph_extender.h
==============================================================================
--- hugo/trunk/lemon/bits/graph_extender.h (original)
+++ hugo/trunk/lemon/bits/graph_extender.h Thu Apr 13 19:57:03 2006
@@ -223,7 +223,7 @@
typedef GraphExtender Graph;
typedef MapExtender<DefaultMap<Graph, Node, _Value> > Parent;
- NodeMap(const Graph& graph)
+ explicit NodeMap(const Graph& graph)
: Parent(graph) {}
NodeMap(const Graph& graph, const _Value& value)
: Parent(graph, value) {}
@@ -247,7 +247,7 @@
typedef GraphExtender Graph;
typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
- EdgeMap(const Graph& graph)
+ explicit EdgeMap(const Graph& graph)
: Parent(graph) {}
EdgeMap(const Graph& graph, const _Value& value)
: Parent(graph, value) {}
More information about the Lemon-commits
mailing list