Skip to content

Commit

Permalink
chore(udp): mark SockFd constructor explicit
Browse files Browse the repository at this point in the history
Signed-off-by: Max SCHMELLER <[email protected]>
  • Loading branch information
mojomex committed Dec 23, 2024
1 parent a9694e2 commit d962945
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class UdpSocket

public:
SockFd() : sock_fd_{uninitialized} {}
SockFd(int sock_fd) : sock_fd_{sock_fd} {}
explicit SockFd(int sock_fd) : sock_fd_{sock_fd} {}
SockFd(SockFd && other) noexcept : sock_fd_{other.sock_fd_} { other.sock_fd_ = uninitialized; }

SockFd(const SockFd &) = delete;
Expand Down

0 comments on commit d962945

Please sign in to comment.