diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-01-25 16:42:40 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-01-25 16:42:40 +0000 |
commit | 0861fdb652408dcdbd2e7b60513f3fa24696e610 (patch) | |
tree | 61b1af5a86e064ade1acc271ca7898a698d87a17 /src/tests | |
parent | 3e824e91146cc9e2454f54375d47e359aa21b8d4 (diff) | |
download | libbu++-0861fdb652408dcdbd2e7b60513f3fa24696e610.tar.gz libbu++-0861fdb652408dcdbd2e7b60513f3fa24696e610.tar.bz2 libbu++-0861fdb652408dcdbd2e7b60513f3fa24696e610.tar.xz libbu++-0861fdb652408dcdbd2e7b60513f3fa24696e610.zip |
The order of key, object in all of the cache related systems has beed fixed,
key just belongs first, that's all there is to it.
Diffstat (limited to '')
-rw-r--r-- | src/tests/cache.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/cache.cpp b/src/tests/cache.cpp index a098145..11a4215 100644 --- a/src/tests/cache.cpp +++ b/src/tests/cache.cpp | |||
@@ -58,7 +58,7 @@ namespace Bu { | |||
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | class BobStore : public Bu::CacheStore<Bob, long> | 61 | class BobStore : public Bu::CacheStore<long, Bob> |
62 | { | 62 | { |
63 | public: | 63 | public: |
64 | BobStore() : | 64 | BobStore() : |
@@ -158,7 +158,7 @@ private: | |||
158 | long cLastId; | 158 | long cLastId; |
159 | }; | 159 | }; |
160 | 160 | ||
161 | class BobCalc : public Bu::CacheCalc<Bob, long> | 161 | class BobCalc : public Bu::CacheCalc<long, Bob> |
162 | { | 162 | { |
163 | public: | 163 | public: |
164 | BobCalc() | 164 | BobCalc() |
@@ -189,7 +189,7 @@ private: | |||
189 | int main( int argc, char *argv[] ) | 189 | int main( int argc, char *argv[] ) |
190 | { | 190 | { |
191 | TRACE( argc, argv ); | 191 | TRACE( argc, argv ); |
192 | typedef Bu::Cache<Bob, long> BobCache; | 192 | typedef Bu::Cache<long, Bob> BobCache; |
193 | typedef BobCache::Ptr BobPtr; | 193 | typedef BobCache::Ptr BobPtr; |
194 | 194 | ||
195 | if( argc < 3 ) | 195 | if( argc < 3 ) |