# HG changeset patch # User deba # Date 1094122466 0 # Node ID 81bf2d76616495bcfd8ba1182a107afc68b92cb7 # Parent df2e45e09652fb2d81bd99ca546871f702242362 diff -r df2e45e09652 -r 81bf2d766164 src/hugo/array_map_factory.h --- a/src/hugo/array_map_factory.h Thu Sep 02 10:07:30 2004 +0000 +++ b/src/hugo/array_map_factory.h Thu Sep 02 10:54:26 2004 +0000 @@ -24,6 +24,7 @@ public: typedef V Value; + typedef V ValueType; typedef A Allocator; @@ -56,7 +57,7 @@ } template Map(const CMap& copy) - : capacity(0), values(0), MapBase(copy) { + : MapBase(copy), capacity(0), values(0) { if (MapBase::getGraph()) { allocate_memory(); for (KeyIt it(*MapBase::getGraph()); it != INVALID; ++it) { diff -r df2e45e09652 -r 81bf2d766164 src/hugo/map_registry.h --- a/src/hugo/map_registry.h Thu Sep 02 10:07:30 2004 +0000 +++ b/src/hugo/map_registry.h Thu Sep 02 10:54:26 2004 +0000 @@ -56,7 +56,7 @@ * Copy constructor to register into the registry. */ - MapBase(const MapBase& copy) : registry(0), graph(copy.graph) { + MapBase(const MapBase& copy) : graph(copy.graph), registry(0) { if (copy.registry) { copy.registry->attach(*this); } @@ -74,6 +74,7 @@ if (copy.registry) { copy.registry->attach(*this); } + return *this; } @@ -232,7 +233,7 @@ /** * Notify all the registered maps about a Key added. */ - virtual void add(Key& key) { + void add(Key& key) { typename Container::iterator it; for (it = container.begin(); it != container.end(); ++it) { (*it)->add(key); @@ -242,7 +243,7 @@ /** * Notify all the registered maps about a Key erased. */ - virtual void erase(Key& key) { + void erase(Key& key) { typename Container::iterator it; for (it = container.begin(); it != container.end(); ++it) { (*it)->erase(key); @@ -252,7 +253,7 @@ /** * Notify all the registered maps about the map should be cleared. */ - virtual void clear() { + void clear() { typename Container::iterator it; for (it = container.begin(); it != container.end(); ++it) { (*it)->clear(); diff -r df2e45e09652 -r 81bf2d766164 src/test/graph_test.cc --- a/src/test/graph_test.cc Thu Sep 02 10:07:30 2004 +0000 +++ b/src/test/graph_test.cc Thu Sep 02 10:54:26 2004 +0000 @@ -320,6 +320,7 @@ //Compile SmartGraph template void checkCompile(SmartGraph &); + //Compile SymSmartGraph template void checkCompile(SymSmartGraph &); @@ -328,6 +329,7 @@ template void checkCompileErase(ListGraph &); template void checkCompileFindEdge(ListGraph &); + //Compile SymListGraph template void checkCompile(SymListGraph &); template void checkCompileErase(SymListGraph &); diff -r df2e45e09652 -r 81bf2d766164 src/work/deba/map_defines.h --- a/src/work/deba/map_defines.h Thu Sep 02 10:07:30 2004 +0000 +++ b/src/work/deba/map_defines.h Thu Sep 02 10:54:26 2004 +0000 @@ -61,7 +61,7 @@ return *this; \ } \ template NodeMap& operator=(const CMap& copy) { \ - this->Factory::Map::operator=(copy); \ + this->Factory::Map::operator=(static_cast&>(copy));\ return *this; \ } \ }; @@ -87,7 +87,7 @@ return *this; \ } \ template EdgeMap& operator=(const CMap& copy) { \ - this->Factory::Map::operator=(copy); \ + this->Factory::Map::operator=(static_cast&>(copy));\ return *this; \ } \ };