Skip to content

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

Open
@jwakely

Description

@jwakely

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions