summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorheinrich5991 <heinrich5991@gmail.com>2018-10-13 12:10:43 +0200
committerheinrich5991 <heinrich5991@gmail.com>2018-10-13 12:10:43 +0200
commitb8b6808cd5505d8f8c390b153ad1dbfd25373e6f (patch)
treee945ff5b9dd612f60042f5b91710fca49020e695
parentebeb289fef90df0b9a060f6e197b58472660a515 (diff)
Fix compilation with gcc in debug mode
It needs explicit template instantiations for src/engine/server/server.cpp, for the Ban function.
-rw-r--r--src/engine/shared/netban.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/shared/netban.cpp b/src/engine/shared/netban.cpp
index 707b709b4..9d7f4c1ce 100644
--- a/src/engine/shared/netban.cpp
+++ b/src/engine/shared/netban.cpp
@@ -601,3 +601,7 @@ void CNetBan::ConBansSave(IConsole::IResult *pResult, void *pUser)
str_format(aBuf, sizeof(aBuf), "saved banlist to '%s'", pResult->GetString(0));
pThis->Console()->Print(IConsole::OUTPUT_LEVEL_STANDARD, "net_ban", aBuf);
}
+
+// explicitly instantiate template for src/engine/server/server.cpp
+template void CNetBan::MakeBanInfo<CNetRange>(const CBan<CNetRange> *pBan, char *pBuf, unsigned BufferSize, int Type) const;
+template void CNetBan::MakeBanInfo<NETADDR>(const CBan<NETADDR> *pBan, char *pBuf, unsigned BufferSize, int Type) const;