From 088587fa7280abd8636f4e476aaba44dafa6ff53 Mon Sep 17 00:00:00 2001 From: XMRig Date: Fri, 14 Jun 2019 05:21:17 +0700 Subject: [PATCH] Fixed build on Linux. --- src/workers/MultiWorker.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/workers/MultiWorker.cpp b/src/workers/MultiWorker.cpp index f209ca76d..ffa34ddac 100644 --- a/src/workers/MultiWorker.cpp +++ b/src/workers/MultiWorker.cpp @@ -195,8 +195,10 @@ bool xmrig::MultiWorker::verify2(const Algorithm &algorithm, const uint8_t *r } +namespace xmrig { + template<> -bool xmrig::MultiWorker<1>::verify2(const Algorithm &algorithm, const uint8_t *referenceValue) +bool MultiWorker<1>::verify2(const Algorithm &algorithm, const uint8_t *referenceValue) { cn_hash_fun func = m_thread->fn(algorithm); if (!func) { @@ -214,6 +216,8 @@ bool xmrig::MultiWorker<1>::verify2(const Algorithm &algorithm, const uint8_t *r return true; } +} // namespace xmrig + template void xmrig::MultiWorker::consumeJob() @@ -269,5 +273,5 @@ template class MultiWorker<3>; template class MultiWorker<4>; template class MultiWorker<5>; -} +} // namespace xmrig