diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-03-15 06:57:03 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-03-15 06:57:03 +0000 |
commit | 505410a5c3b93f81deda8b9653c2237a433be5c1 (patch) | |
tree | e4ac25af48878cdf466571a3d70577de9d3f890a /src/fstring.cpp | |
parent | cf847cc534a2a7ad06750c446028b7c6d126fe21 (diff) | |
download | libbu++-505410a5c3b93f81deda8b9653c2237a433be5c1.tar.gz libbu++-505410a5c3b93f81deda8b9653c2237a433be5c1.tar.bz2 libbu++-505410a5c3b93f81deda8b9653c2237a433be5c1.tar.xz libbu++-505410a5c3b93f81deda8b9653c2237a433be5c1.zip |
This version may break hashing of strings, but at least you can hash FStrings...
templates are confusing.
Diffstat (limited to 'src/fstring.cpp')
-rw-r--r-- | src/fstring.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/fstring.cpp b/src/fstring.cpp index 8fe2941..82d024d 100644 --- a/src/fstring.cpp +++ b/src/fstring.cpp | |||
@@ -1,2 +1,13 @@ | |||
1 | #include "fstring.h" | 1 | #include "fstring.h" |
2 | #include "hash.h" | ||
3 | |||
4 | template<> uint32_t __calcHashCode<FString>( const FString &k ) | ||
5 | { | ||
6 | return __calcHashCode( k.c_str() ); | ||
7 | } | ||
8 | |||
9 | template<> bool __cmpHashKeys<FString>( const FString &a, const FString &b ) | ||
10 | { | ||
11 | return a == b; | ||
12 | } | ||
2 | 13 | ||