Skip to content

Commit

Permalink
Remove unnecessary specialization of std::hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Dec 18, 2023
1 parent a4c4d2b commit 5fc96aa
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/zimcheck/checks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,6 @@
#include <zim/archive.h>
#include <zim/item.h>

// Specialization of std::hash needed for our unordered_map. Can be removed in c++14
namespace std {
template <> struct hash<LogTag> {
size_t operator() (const LogTag &t) const { return size_t(t); }
};
}

// Specialization of std::hash needed for our unordered_map. Can be removed in c++14
namespace std {
template <> struct hash<TestType> {
size_t operator() (const TestType &t) const { return size_t(t); }
};
}

// Specialization of std::hash needed for our unordered_map. Can be removed in c++14
namespace std {
template <> struct hash<MsgId> {
size_t operator() (const MsgId &msgid) const { return size_t(msgid); }
};
}

namespace
{

Expand Down

0 comments on commit 5fc96aa

Please sign in to comment.