diff --git a/src/engine/fileOps/tfm.cpp b/src/engine/fileOps/tfm.cpp index b4535c762..2a1f20d27 100644 --- a/src/engine/fileOps/tfm.cpp +++ b/src/engine/fileOps/tfm.cpp @@ -172,13 +172,14 @@ struct TFMSpeed { }; // to make it work with map -template<> -struct std::hash -{ - size_t operator()(const TFMSpeed& s) const noexcept { - return s.speedEven<<16|s.speedOdd<<8|s.interleaveFactor; - } -}; +namespace std { + template<> struct hash + { + size_t operator()(const TFMSpeed& s) const noexcept { + return s.speedEven<<16|s.speedOdd<<8|s.interleaveFactor; + } + }; +} struct TFMParsePatternInfo { TFMRLEReader* reader;