make EnetConnection non copyable
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <Nazara/Core/ThreadExt.hpp>
|
||||
#include <Nazara/Network/ENetHost.hpp>
|
||||
#include <blitz/common/NonCopyable.h>
|
||||
#include <blitz/network/EnetConnexion.h>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
@@ -35,7 +34,7 @@ class EnetServer : private NonCopyable {
|
||||
Nz::ENetHost m_Host;
|
||||
bool m_Running;
|
||||
std::thread m_Thread;
|
||||
std::map<std::uint16_t, EnetConnexion> m_Connexion;
|
||||
std::map<std::uint16_t, std::unique_ptr<EnetConnexion>> m_Connexion;
|
||||
};
|
||||
|
||||
} // namespace network
|
||||
|
||||
Reference in New Issue
Block a user