diff --git a/src/common/UsernameSet.hpp b/src/common/UsernameSet.hpp index d71bcdaf6..0d37f8851 100644 --- a/src/common/UsernameSet.hpp +++ b/src/common/UsernameSet.hpp @@ -6,6 +6,7 @@ #include namespace chatterino { + class Prefix { public: @@ -19,9 +20,11 @@ private: friend struct std::hash; }; + } // namespace chatterino namespace std { + template <> struct hash { size_t operator()(const chatterino::Prefix &prefix) const @@ -30,9 +33,11 @@ struct hash { size_t(prefix.second.unicode()); } }; + } // namespace std namespace chatterino { + class UsernameSet { public: