找出这个生成式套接字包装器中的所有权错误。
C++
class Socket {
public:
explicit Socket(int fd) : fd_(fd) {}
~Socket() { close_socket(fd_); }
int get() const { return fd_; }
private:
int fd_;
};
void send_probe(Socket socket) {
send_bytes(socket.get(), "ping");
}