Closed wg21bot closed 1 year ago
Mentioned papers:
EWG will discuss this comment along with P2589.
Potentially duplicated by https://github.com/cplusplus/nbballot/issues/446
Forward P2589R0 to CWG for inclusion in C++23.
SF | F | N | A | SA |
---|---|---|---|---|
5 | 12 | 6 | 1 | 0 |
Result: Consensus
CWG 2022-11-08: Accepted.
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.