Fix build with gcc 3.4

This commit is contained in:
Tilman Keskinoz 2004-08-16 13:26:42 +00:00
parent cbdfc6e135
commit f5da8821f2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116402
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,20 @@
--- utils/HashString.hpp.orig Mon Aug 16 15:01:21 2004
+++ utils/HashString.hpp Mon Aug 16 15:02:23 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

View File

@ -0,0 +1,11 @@
--- game/Input.hpp.orig Mon Aug 16 15:03:38 2004
+++ game/Input.hpp Mon Aug 16 15:04:07 2004
@@ -28,7 +28,7 @@
namespace HASH_NAMESPACE
{
- struct hash<Trigger>
+ template <> struct hash<Trigger>
{
//a simple hash function for Trigger
int operator()(const Trigger &t) const