summaryrefslogtreecommitdiff
path: root/include/hashcomp.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-08 03:48:43 -0400
committerAdam <Adam@anope.org>2011-04-10 17:54:20 -0400
commitb56565eac2d7207c88c53054cb1096519ec7fba9 (patch)
treecd0f10a47dd002157553d96e2ef91ea5d620eadc /include/hashcomp.h
parentf8588b112fe6ef1095e40fcd64f85e670d96bc92 (diff)
Fixed Windows build on VS 2010
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r--include/hashcomp.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index bb3321161..07ec49a66 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -92,7 +92,7 @@ namespace irc
* Case sensitivity is ignored, and the RFC 'character set'
* is adhered to
*/
- struct StrHashComp
+ struct CoreExport StrHashComp
{
/** The operator () does the actual comparison in hash_map
*/
@@ -479,6 +479,15 @@ namespace irc
* @return The new value with _ translated to space.
*/
CoreExport const char* Spacify(const char* n);
+
+ struct hash
+ {
+ /** Hash an irc::string using RFC1459 case sensitivity rules
+ * @param s A string to hash
+ * @return The hash value
+ */
+ size_t CoreExport operator()(const irc::string &s) const;
+ };
}
/* Define operators for using >> and << with irc::string to an ostream on an istream. */
@@ -622,15 +631,6 @@ BEGIN_HASHMAP_NAMESPACE
};
#else
- template<> struct hash<irc::string>
- {
- /** Hash an irc::string using RFC1459 case sensitivity rules
- * @param s A string to hash
- * @return The hash value
- */
- size_t CoreExport operator()(const irc::string &s) const;
- };
-
/* XXX FIXME: Implement a hash function overriding std::string's that works with TR1! */
#ifdef HASHMAP_DEPRECATED