event/WinSelect: pass const reference to copy constructor
This commit is contained in:
parent
497e0669ff
commit
ea402b765c
@ -43,7 +43,7 @@ class SocketSet
|
|||||||
fd_set set;
|
fd_set set;
|
||||||
public:
|
public:
|
||||||
SocketSet() { set.fd_count = 0; }
|
SocketSet() { set.fd_count = 0; }
|
||||||
SocketSet(SocketSet &other) {
|
SocketSet(const SocketSet &other) noexcept {
|
||||||
set.fd_count = other.set.fd_count;
|
set.fd_count = other.set.fd_count;
|
||||||
memcpy(set.fd_array,
|
memcpy(set.fd_array,
|
||||||
other.set.fd_array,
|
other.set.fd_array,
|
||||||
|
Loading…
Reference in New Issue
Block a user