Open
Description
This runs into the right margin:
Remarks:
length_error
if 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_error
if 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_error
ifs != 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.