--- a/auto_map.h 2004/06/17 20:59:44 1.8 +++ b/auto_map.h 2008/03/10 06:52:28 1.10 @@ -23,10 +23,10 @@ #include #include -template class Base> -class auto_map_base : public Base > { +template +class auto_map_base : public Base { protected: - typedef Base > super; + typedef Base super; public: typedef typename super::iterator iterator; @@ -55,9 +55,9 @@ template -class auto_map : public auto_map_base { +class auto_map : public auto_map_base > > { public: - typedef typename auto_map_base::super super; + typedef typename auto_map_base > >::super super; typedef typename super::iterator iterator; typedef typename super::value_type value_type; /*super::value_type value_type(const K &k, T*p) { @@ -68,15 +68,15 @@ return super::insert(v); }*/ std::pair insert_value(const K &k, T* p) { //we can't really use the normal insert funcs, but we don't want to just name it insert since it would be easy to confuse with all the normal map insert funcs - assert(find(k)==this->end()); + assert(this->find(k)==this->end()); return super::insert(value_type(k, restricted_ptr(p))); } }; template -class auto_multimap : public auto_map_base { +class auto_multimap : public auto_map_base > > { public: - typedef typename auto_map_base::super super; + typedef typename auto_map_base > >::super super; typedef typename super::iterator iterator; typedef typename super::value_type value_type; iterator insert_value(const K &k, T* p) { //we can't really use the normal insert funcs, but we don't want to just name it insert since it would be easy to confuse with all the normal map insert funcs