diff -r 4317d277ba21 -r 765619b7cbb2 lemon/bits/default_map.h --- a/lemon/bits/default_map.h Sun Jul 13 16:46:56 2008 +0100 +++ b/lemon/bits/default_map.h Sun Jul 13 19:51:02 2008 +0100 @@ -1,6 +1,6 @@ -/* -*- C++ -*- +/* -*- mode: C++; indent-tabs-mode: nil; -*- * - * This file is a part of LEMON, a generic C++ optimization library + * This file is a part of LEMON, a generic C++ optimization library. * * Copyright (C) 2003-2008 * Egervary Jeno Kombinatorikus Optimalizalasi Kutatocsoport @@ -29,8 +29,8 @@ ///\brief Graph maps that construct and destruct their elements dynamically. namespace lemon { - - + + //#ifndef LEMON_USE_DEBUG_MAP template @@ -140,28 +140,28 @@ typedef VectorMap<_Graph, _Item, _Ptr*> Map; }; -// #else +// #else // template // struct DefaultMapSelector { // typedef DebugMap<_Graph, _Item, _Value> Map; // }; -// #endif +// #endif /// \e template - class DefaultMap + class DefaultMap : public DefaultMapSelector<_Graph, _Item, _Value>::Map { public: typedef typename DefaultMapSelector<_Graph, _Item, _Value>::Map Parent; typedef DefaultMap<_Graph, _Item, _Value> Map; - + typedef typename Parent::Graph Graph; typedef typename Parent::Value Value; explicit DefaultMap(const Graph& graph) : Parent(graph) {} - DefaultMap(const Graph& graph, const Value& value) + DefaultMap(const Graph& graph, const Value& value) : Parent(graph, value) {} DefaultMap& operator=(const DefaultMap& cmap) {