Fix compile on GCC 5.5 or older

This commit is contained in:
Miodrag Milanovic 2018-11-27 19:20:15 +01:00
parent cdfd35e6aa
commit 0b5748a7af

View File

@ -84,4 +84,14 @@ static inline void log_assert_worker(bool cond, const char *expr, const char *fi
NEXTPNR_NAMESPACE_END
namespace std {
template <> struct hash<NEXTPNR_NAMESPACE_PREFIX LogLevel>
{
std::size_t operator()(const NEXTPNR_NAMESPACE_PREFIX LogLevel &loglevel) const noexcept
{
return std::hash<int>()((int)loglevel);
}
};
} // namespace std
#endif