$NetBSD: patch-ab,v 1.2 2007/03/24 00:03:30 joerg Exp $ --- gsmlib/gsm_map_key.h.orig 2002-05-14 19:38:12.000000000 +0000 +++ gsmlib/gsm_map_key.h @@ -45,20 +45,12 @@ namespace gsmlib MapKey(SortedStore &myStore, string key) : _myStore(myStore), _strKey(key) {} - friend - bool operator< -#ifndef WIN32 - <> -#endif - (const MapKey &x, - const MapKey &y); - friend - bool operator== -#ifndef WIN32 - <> -#endif - (const MapKey &x, - const MapKey &y); + template friend + bool operator<(const MapKey<_SortedStore> &x, + const MapKey<_SortedStore> &y); + template friend + bool operator==(const MapKey<_SortedStore> &x, + const MapKey<_SortedStore> &y); }; // compare two keys @@ -72,8 +64,7 @@ namespace gsmlib // MapKey members template - bool gsmlib::operator<(const MapKey &x, - const MapKey &y) + bool operator<(const MapKey &x, const MapKey &y) { assert(&x._myStore == &y._myStore); @@ -97,8 +88,7 @@ namespace gsmlib } template - bool gsmlib::operator==(const MapKey &x, - const MapKey &y) + bool operator==(const MapKey &x, const MapKey &y) { assert(&x._myStore == &y._myStore);