somehow, clang wants explicit instantiation for those

This commit is contained in:
espie 2017-05-06 13:42:17 +00:00
parent 557d591dd9
commit 8adc59652f

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_engine_shared_netban_cpp,v 1.1 2017/05/06 13:42:17 espie Exp $
Index: src/engine/shared/netban.cpp
--- src/engine/shared/netban.cpp.orig
+++ src/engine/shared/netban.cpp
@@ -601,3 +601,6 @@ void CNetBan::ConBansSave(IConsole::IResult *pResult,
str_format(aBuf, sizeof(aBuf), "saved banlist to '%s'", pResult->GetString(0));
pThis->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "net_ban", aBuf);
}
+
+template class CNetBan::CBanPool<NETADDR, 1>;
+template class CNetBan::CBanPool<CNetRange, 16>;