This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 112e. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
[Accepted at the July, 2022 meeting.]
The intent of paper P2128R6, which permitted multiple parameters in overloaded subscript operators and was adopted at the October, 2021 plenary, was that overloaded operator should allow parameters with default arguments. However, the adopted wording did not address the following restriction from 12.4.1 [over.oper.general] paragraph 10:
An operator function cannot have default arguments (188.8.131.52 [dcl.fct.default]), except where explicitly stated below.
Similar wording to that of operator() should be added for operator.
Proposed resolution (December, 2021):
Change 12.4.5 [over.sub] paragraph 1 as follows:
A subscripting operator function is a function named operator that is a non-static member function . For an expression...
Approved by EWG 2022-04-14.
Approved by CWG 2022-04-22.