cplusplus / nbballot

Handling of NB comments in response to ballots
14 stars 4 forks source link

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

Closed wg21bot closed 1 year ago

wg21bot commented 1 year ago

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.

jfbastien commented 1 year ago

Mentioned papers:

EWG will discuss this comment along with P2589.

Potentially duplicated by https://github.com/cplusplus/nbballot/issues/446

erichkeane commented 1 year ago

Forward P2589R0 to CWG for inclusion in C++23.

SF F N A SA
5 12 6 1 0

Result: Consensus

jensmaurer commented 1 year ago

CWG 2022-11-08: Accepted.