move std function
This commit is contained in:
@@ -103,7 +103,7 @@ public:
|
||||
|
||||
//! \~english Sets the factory used to create accepted client objects.
|
||||
//! \~russian Устанавливает фабрику, создающую объекты принятых клиентов.
|
||||
void setClientFactory(std::function<ServerClient *()> f) { client_factory = f; }
|
||||
void setClientFactory(std::function<ServerClient *()> f) { client_factory = std::move(f); }
|
||||
|
||||
private:
|
||||
void newClient(ServerClient * c);
|
||||
|
||||
Reference in New Issue
Block a user