[internet.endpoint.extensible] condition too long to fit on one line
jwakely opened this issue · 0 comments
jwakely commented
This runs into the right margin:
Remarks:
length_errorif the conditionprotocol().family() == AF_INET6 && s != sizeof(sock- addr_in6) || protocol().family() == AF_INET4 && s != sizeof(sockaddr_in)istrue.
It could be changed to:
Remarks:
length_errorif either of the following conditions is true:
— protocol().family() == AF_INET6 && s != sizeof(sockaddr_in6),
— protocol().family() == AF_INET4 && s != sizeof(sockaddr_in).
But maybe it could be:
Remarks:
length_errorifs != size().
This isn't identical in the case where protocol.family() is neither AF_INET4 not AF_INET6 but that should be disallowed by the constructors.