Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Casting pointers & Rule 5-2-7
#2
I've similar rule 5-2-7 non-compliant. Does anyone know how to get around this?

struct sockaddr_in address = sockaddr_from(bind_port);
const int32_t output = bind(sock_fd, reinterpret_cast(&address), sizeof(address));
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)