Fix for clang not being lazy about template expansion

This commit is contained in:
karlberg
2021-05-12 20:55:03 -07:00
parent cb8016bde5
commit c0d9a3c423
2 changed files with 6 additions and 5 deletions
@@ -137,11 +137,6 @@ namespace Multiplayer
return AZ::Interface<IMultiplayer>::Get();
}
inline INetworkTime* GetNetworkTime()
{
return AZ::Interface<INetworkTime>::Get();
}
inline INetworkEntityManager* GetNetworkEntityManager()
{
IMultiplayer* multiplayer = GetMultiplayer();
@@ -83,4 +83,10 @@ namespace Multiplayer
static const AZ::EBusAddressPolicy AddressPolicy = AZ::EBusAddressPolicy::Single;
};
using INetworkTimeRequestBus = AZ::EBus<INetworkTime, INetworkTimeRequests>;
// Convenience helpers
inline INetworkTime* GetNetworkTime()
{
return AZ::Interface<INetworkTime>::Get();
}
}