COIN-OR::LEMON - Graph Library

Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lemon/bits/default_map.h

    r463 r674  
    2020#define LEMON_BITS_DEFAULT_MAP_H
    2121
     22#include <lemon/config.h>
    2223#include <lemon/bits/array_map.h>
    2324#include <lemon/bits/vector_map.h>
     
    9798
    9899
    99 #if defined __GNUC__ && !defined __STRICT_ANSI__
     100#if defined LEMON_HAVE_LONG_LONG
    100101
    101102  // long long
     
    153154  class DefaultMap
    154155    : public DefaultMapSelector<_Graph, _Item, _Value>::Map {
     156    typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent;
     157
    155158  public:
    156     typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent;
    157159    typedef DefaultMap<_Graph, _Item, _Value> Map;
    158 
    159     typedef typename Parent::Graph Graph;
     160   
     161    typedef typename Parent::GraphType GraphType;
    160162    typedef typename Parent::Value Value;
    161163
    162     explicit DefaultMap(const Graph& graph) : Parent(graph) {}
    163     DefaultMap(const Graph& graph, const Value& value)
     164    explicit DefaultMap(const GraphType& graph) : Parent(graph) {}
     165    DefaultMap(const GraphType& graph, const Value& value)
    164166      : Parent(graph, value) {}
    165167
Note: See TracChangeset for help on using the changeset viewer.