lemon/bits/default_map.h
changeset 617 4137ef9aacc6
parent 535 6a17a722b50e
child 627 20dac2104519
     1.1 --- a/lemon/bits/default_map.h	Fri Apr 24 10:15:33 2009 +0200
     1.2 +++ b/lemon/bits/default_map.h	Fri Apr 24 11:54:48 2009 +0200
     1.3 @@ -153,15 +153,16 @@
     1.4    template <typename _Graph, typename _Item, typename _Value>
     1.5    class DefaultMap
     1.6      : public DefaultMapSelector<_Graph, _Item, _Value>::Map {
     1.7 +    typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent;
     1.8 +
     1.9    public:
    1.10 -    typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent;
    1.11      typedef DefaultMap<_Graph, _Item, _Value> Map;
    1.12 -
    1.13 -    typedef typename Parent::Graph Graph;
    1.14 +    
    1.15 +    typedef typename Parent::GraphType GraphType;
    1.16      typedef typename Parent::Value Value;
    1.17  
    1.18 -    explicit DefaultMap(const Graph& graph) : Parent(graph) {}
    1.19 -    DefaultMap(const Graph& graph, const Value& value)
    1.20 +    explicit DefaultMap(const GraphType& graph) : Parent(graph) {}
    1.21 +    DefaultMap(const GraphType& graph, const Value& value)
    1.22        : Parent(graph, value) {}
    1.23  
    1.24      DefaultMap& operator=(const DefaultMap& cmap) {