Skip to content

CWG3153 [expr.const] immediate-escalating defaulted comparison #837

Description

@jicama

Full name of submitter (unless configured in github; will be published with the issue):

Reference (section label): [expr.const]

Link to reflector thread (if any):

Issue description:

25.2 includes in the category of immediate-escalating functions "a defaulted special member function that is not declared with the consteval specifier". This omits defaulted comparison operators, which presumably should also be immediate-escalating, and all the implementations seem to agree (https://godbolt.org/z/dG5sxbacP).

Suggested resolution:

Remove "special member" so that any defaulted function is included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions