Skip to content

CA-065 12.4.5p1 [over.sub] Support static operator[] #460

@wg21bot

Description

@wg21bot

P1169 static operator(), P2128 (Multidimensional subscript operator) and EWG88 all mention that operator[] should be allowed to be a static member function if operator() is allowed to be a static member function.

We propose that operator[] in, its use and definition, should match that of operator(). We ask that we accept P2589 static operator[] to fix this for C++23. This is a minor fix to get us the uniformity that we all wanted and was missed unintentionally in the CD.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions