summaryrefslogtreecommitdiff
path: root/include/hashcomp.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-04-15 16:45:42 +0100
committerPeter Powell <petpow@saberuk.com>2013-04-19 01:34:07 +0100
commit0d3a6719b8d924ea663f95e3e2fb834cbd80c6a5 (patch)
treed16a152c375232039ce2243145c57d3bb4aed525 /include/hashcomp.h
parent326852f7dd3fd6989d37ad2991f8a174b3a86b65 (diff)
Fix building with libc++.
- Purged std::tr1::strlower (was never used). - Moved std::tr1::insensitive to irc::insensitive. - Added TR1NS macro to point to the correct C++ TR1 namespace.
Diffstat (limited to 'include/hashcomp.h')
-rw-r--r--include/hashcomp.h23
1 files changed, 5 insertions, 18 deletions
diff --git a/include/hashcomp.h b/include/hashcomp.h
index e4b3cfe79..3c00844be 100644
--- a/include/hashcomp.h
+++ b/include/hashcomp.h
@@ -109,6 +109,11 @@ namespace irc
bool operator()(const std::string& s1, const std::string& s2) const;
};
+ struct insensitive
+ {
+ size_t CoreExport operator()(const std::string &s) const;
+ };
+
/** The irc_char_traits class is used for RFC-style comparison of strings.
* This class is used to implement irc::string, a case-insensitive, RFC-
* comparing string class.
@@ -581,21 +586,3 @@ inline std::string& trim(std::string &str)
return str;
}
-
-namespace std
-{
- namespace tr1
- {
-
- struct insensitive
- {
- size_t CoreExport operator()(const std::string &s) const;
- };
-
- /** Convert a string to lower case respecting RFC1459
- * @param n A string to lowercase
- */
- void strlower(char *n);
-
- }
-}