Fix compilation with gcc in debug mode

It needs explicit template instantiations for
src/engine/server/server.cpp, for the Ban function.
This commit is contained in:
heinrich5991 2018-10-13 12:10:43 +02:00
parent ebeb289fef
commit b8b6808cd5

View file

@ -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;