mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
WiiSocket: Explicitly delete move operators
The move assignment operator for a class is implicitly deleted when the class has a non-static reference data member, which is true of WiiSocket's m_socket_manager member. Explicitly declaring the operator as default generates a -Wdefaulted-function-deleted warning on Clang. Delete the move constructor as well for consistency.
This commit is contained in:
@ -182,10 +182,10 @@ class WiiSocket
|
|||||||
public:
|
public:
|
||||||
explicit WiiSocket(WiiSockMan& socket_manager) : m_socket_manager(socket_manager) {}
|
explicit WiiSocket(WiiSockMan& socket_manager) : m_socket_manager(socket_manager) {}
|
||||||
WiiSocket(const WiiSocket&) = delete;
|
WiiSocket(const WiiSocket&) = delete;
|
||||||
WiiSocket(WiiSocket&&) = default;
|
WiiSocket(WiiSocket&&) = delete;
|
||||||
~WiiSocket();
|
~WiiSocket();
|
||||||
WiiSocket& operator=(const WiiSocket&) = delete;
|
WiiSocket& operator=(const WiiSocket&) = delete;
|
||||||
WiiSocket& operator=(WiiSocket&&) = default;
|
WiiSocket& operator=(WiiSocket&&) = delete;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
using Timeout = std::chrono::time_point<std::chrono::steady_clock>;
|
using Timeout = std::chrono::time_point<std::chrono::steady_clock>;
|
||||||
|
Reference in New Issue
Block a user