From 574d2b2beac61655ac76b341ed3935f9bd26de0a Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 1 May 2024 14:19:27 -0500 Subject: [PATCH] make Ubuntu 16.04 happy --- src/engine/fileOps/tfm.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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;