--- deliantra/server/common/arch.C 2006/09/12 19:20:06 1.17 +++ deliantra/server/common/arch.C 2006/09/14 18:13:01 1.19 @@ -50,14 +50,17 @@ #if USE_UNORDERED_MAP // the hashtable -typedef - std::tr1::unordered_map < -size_t, archetype *> - HT; - -static - HT - ht; +typedef std::tr1::unordered_map + < + std::size_t, + archetype *, + std::hash, + std::equal_to, + slice_allocator< std::pair > + true, + > HT; + +static HT ht; #endif /** @@ -754,7 +757,7 @@ if (!name) return 0; - HT::const_iterator i = ht.find ((size_t) name); + AUTODECL (i, ht.find ((size_t) name)); if (i == ht.end ()) return 0;