diff -r c35afa9e89e7 -r ef88c0a30f85 lemon/bits/default_map.h --- a/lemon/bits/default_map.h Mon Jan 12 23:11:39 2009 +0100 +++ b/lemon/bits/default_map.h Thu Nov 05 15:48:01 2009 +0100 @@ -19,6 +19,7 @@ #ifndef LEMON_BITS_DEFAULT_MAP_H #define LEMON_BITS_DEFAULT_MAP_H +#include #include #include //#include @@ -96,7 +97,7 @@ }; -#if defined __GNUC__ && !defined __STRICT_ANSI__ +#if defined LEMON_HAVE_LONG_LONG // long long template @@ -152,15 +153,16 @@ template class DefaultMap : public DefaultMapSelector<_Graph, _Item, _Value>::Map { + typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent; + public: - typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent; typedef DefaultMap<_Graph, _Item, _Value> Map; - - typedef typename Parent::Graph Graph; + + typedef typename Parent::GraphType GraphType; typedef typename Parent::Value Value; - explicit DefaultMap(const Graph& graph) : Parent(graph) {} - DefaultMap(const Graph& graph, const Value& value) + explicit DefaultMap(const GraphType& graph) : Parent(graph) {} + DefaultMap(const GraphType& graph, const Value& value) : Parent(graph, value) {} DefaultMap& operator=(const DefaultMap& cmap) {