diff options
author | arved <arved@FreeBSD.org> | 2004-08-17 14:22:36 +0000 |
---|---|---|
committer | arved <arved@FreeBSD.org> | 2004-08-17 14:22:36 +0000 |
commit | 1ceb6b1f6469ed4fcdb297a361650da1051cc907 (patch) | |
tree | 7c586bad79cf85868781d60a8a4bd21424d60097 /games | |
parent | 18826153d50886eccc2ff6f99d262f4e0707808b (diff) | |
download | FreeBSD-ports-1ceb6b1f6469ed4fcdb297a361650da1051cc907.zip FreeBSD-ports-1ceb6b1f6469ed4fcdb297a361650da1051cc907.tar.gz |
Add template <> to explicit specialization to fix build.
Diffstat (limited to 'games')
-rw-r--r-- | games/shaaft/files/patch-HashString.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/shaaft/files/patch-HashString.h b/games/shaaft/files/patch-HashString.h new file mode 100644 index 0000000..532ace0 --- /dev/null +++ b/games/shaaft/files/patch-HashString.h @@ -0,0 +1,20 @@ +--- utils/HashString.hpp.orig Tue Aug 17 16:17:33 2004 ++++ utils/HashString.hpp Tue Aug 17 16:18:12 2004 +@@ -21,7 +21,7 @@ + + namespace HASH_NAMESPACE + { +- struct hash<const string> ++ template <> struct hash<const string> + { + //a simple hash function for string + int operator()(const string & s) const +@@ -32,7 +32,7 @@ + } + }; + +- struct hash<string> ++ template <> struct hash<string> + { + //a simple hash function for string + int operator()(string s) const |