diff options
author | Sadie Powell <sadie@witchery.services> | 2022-03-01 05:09:29 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-03-01 05:09:29 +0000 |
commit | 09c587bed0589bc3678e4fd4b52101cbb28501b1 (patch) | |
tree | 7b97db4d81ac20710a7d083c9a350dea059008c9 /include/anope.h | |
parent | a8724b5f03adc05355c52fb7c75c9f1b6136348d (diff) |
Remove TR1 compatibility layer.
This isn't necessary now we use C++17.
Diffstat (limited to 'include/anope.h')
-rw-r--r-- | include/anope.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/anope.h b/include/anope.h index 17677bf73..59f7c1684 100644 --- a/include/anope.h +++ b/include/anope.h @@ -312,7 +312,7 @@ namespace Anope { inline size_t operator()(const string &s) const { - return TR1NS::hash<std::string>()(s.lower().str()); + return std::hash<std::string>()(s.lower().str()); } }; @@ -320,7 +320,7 @@ namespace Anope { inline size_t operator()(const string &s) const { - return TR1NS::hash<std::string>()(s.str()); + return std::hash<std::string>()(s.str()); } }; @@ -334,7 +334,7 @@ namespace Anope template<typename T> class map : public std::map<string, T, ci::less> { }; template<typename T> class multimap : public std::multimap<string, T, ci::less> { }; - template<typename T> class hash_map : public TR1NS::unordered_map<string, T, hash_ci, compare> { }; + template<typename T> class hash_map : public std::unordered_map<string, T, hash_ci, compare> { }; #ifndef REPRODUCIBLE_BUILD static const char *const compiled = __TIME__ " " __DATE__; |