cplusplus/networking-ts

[internet.endpoint.extensible] condition too long to fit on one line

jwakely opened this issue · 0 comments

This runs into the right margin:

Remarks: length_error if the condition protocol().family() == AF_INET6 && s != sizeof(sock- addr_in6) || protocol().family() == AF_INET4 && s != sizeof(sockaddr_in) is true.

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 if s != 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.