diff --git a/lemon/cost_scaling.h b/lemon/cost_scaling.h --- a/lemon/cost_scaling.h +++ b/lemon/cost_scaling.h @@ -205,12 +205,12 @@ private: template - class VectorMap { + class StaticVectorMap { public: typedef KT Key; typedef VT Value; - VectorMap(std::vector& v) : _v(v) {} + StaticVectorMap(std::vector& v) : _v(v) {} const Value& operator[](const Key& key) const { return _v[StaticDigraph::id(key)]; @@ -228,8 +228,8 @@ std::vector& _v; }; - typedef VectorMap LargeCostNodeMap; - typedef VectorMap LargeCostArcMap; + typedef StaticVectorMap LargeCostNodeMap; + typedef StaticVectorMap LargeCostArcMap; private: