make Ubuntu 16.04 happy

This commit is contained in:
tildearrow 2024-05-01 14:19:27 -05:00
parent 36d9d31d2f
commit 574d2b2bea

View file

@ -172,13 +172,14 @@ struct TFMSpeed {
}; };
// to make it work with map // to make it work with map
template<> namespace std {
struct std::hash<TFMSpeed> template<> struct hash<TFMSpeed>
{ {
size_t operator()(const TFMSpeed& s) const noexcept { size_t operator()(const TFMSpeed& s) const noexcept {
return s.speedEven<<16|s.speedOdd<<8|s.interleaveFactor; return s.speedEven<<16|s.speedOdd<<8|s.interleaveFactor;
} }
}; };
}
struct TFMParsePatternInfo { struct TFMParsePatternInfo {
TFMRLEReader* reader; TFMRLEReader* reader;