COIN-OR::LEMON - Graph Library

Ticket #311: 311-1-625b61b1ab13.patch

File 311-1-625b61b1ab13.patch, 1.9 KB (added by Peter Kovacs, 15 years ago)
  • lemon/bits/edge_set_extender.h

    # HG changeset patch
    # User Peter Kovacs <kpeter@inf.elte.hu>
    # Date 1250786256 -7200
    # Node ID 625b61b1ab136edab21c4fd8bc01afac56294c67
    # Parent  9f529abcaebf13f19e61ba24fdd2c3631860af91
    Add missing 'explicit' keywords (#311)
    
    diff --git a/lemon/bits/edge_set_extender.h b/lemon/bits/edge_set_extender.h
    a b  
    537537      typedef MapExtender<DefaultMap<Graph, Arc, _Value> > Parent;
    538538
    539539    public:
    540       ArcMap(const Graph& _g)
     540      explicit ArcMap(const Graph& _g)
    541541        : Parent(_g) {}
    542542      ArcMap(const Graph& _g, const _Value& _v)
    543543        : Parent(_g, _v) {}
     
    561561      typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
    562562
    563563    public:
    564       EdgeMap(const Graph& _g)
     564      explicit EdgeMap(const Graph& _g)
    565565        : Parent(_g) {}
    566566
    567567      EdgeMap(const Graph& _g, const _Value& _v)
  • lemon/bits/graph_extender.h

    diff --git a/lemon/bits/graph_extender.h b/lemon/bits/graph_extender.h
    a b  
    604604      typedef MapExtender<DefaultMap<Graph, Node, _Value> > Parent;
    605605
    606606    public:
    607       NodeMap(const Graph& graph)
     607      explicit NodeMap(const Graph& graph)
    608608        : Parent(graph) {}
    609609      NodeMap(const Graph& graph, const _Value& value)
    610610        : Parent(graph, value) {}
     
    628628      typedef MapExtender<DefaultMap<Graph, Arc, _Value> > Parent;
    629629
    630630    public:
    631       ArcMap(const Graph& graph)
     631      explicit ArcMap(const Graph& graph)
    632632        : Parent(graph) {}
    633633      ArcMap(const Graph& graph, const _Value& value)
    634634        : Parent(graph, value) {}
     
    652652      typedef MapExtender<DefaultMap<Graph, Edge, _Value> > Parent;
    653653
    654654    public:
    655       EdgeMap(const Graph& graph)
     655      explicit EdgeMap(const Graph& graph)
    656656        : Parent(graph) {}
    657657
    658658      EdgeMap(const Graph& graph, const _Value& value)