用std的bind,则在bind前加std::,
例如:int result = std::bind(listen_fd, (struct sockaddr *)&server, sizeof(struct sockaddr));
若用sys/socket.h中的bind,则在bind前加::,
例如:int result = ::bind(listen_fd, (struct sockaddr *)&server, sizeof(struct sockaddr));
用std的bind,则在bind前加std::,
例如:int result = std::bind(listen_fd, (struct sockaddr *)&server, sizeof(struct sockaddr));
若用sys/socket.h中的bind,则在bind前加::,
例如:int result = ::bind(listen_fd, (struct sockaddr *)&server, sizeof(struct sockaddr));