$NetBSD: patch-auto__map_h,v 1.1 2012/05/07 20:38:41 dholland Exp $ Update the C++ dialect. --- auto_map.h.orig 2004-06-17 21:00:33.000000000 +0000 +++ auto_map.h @@ -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 @@ class auto_map_base : public Base -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 @@ class auto_map : public auto_map_base 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