diff options
-rw-r--r-- | src/cache.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cache.h b/src/cache.h index c738d28..f10233b 100644 --- a/src/cache.h +++ b/src/cache.h | |||
@@ -20,6 +20,11 @@ namespace Bu | |||
20 | { | 20 | { |
21 | // template<class keytype, class obtype> | 21 | // template<class keytype, class obtype> |
22 | // keytype __cacheGetKey( obtype *&pObj ); | 22 | // keytype __cacheGetKey( obtype *&pObj ); |
23 | template<class keytype, class obtype> | ||
24 | keytype __cacheGetKey( const obtype *pObj ) | ||
25 | { | ||
26 | return pObj->getKey(); | ||
27 | } | ||
23 | 28 | ||
24 | template<class keytype, class obtype> | 29 | template<class keytype, class obtype> |
25 | class Cache | 30 | class Cache |