Subject: Re: [std-proposals] Language Feature for Reducing Duplicated Code
From: GaÅ¡per AÅ¾man (gasper.azman_at_[hidden])
Date: 2020-07-22 05:33:40
The wording changes that.
The *new* version of the wording makes the wording far more clear (could
have sworn we sent it in a mailing, but I guess we'll have to send it
is the status quo of the paper. There are no design changes or semantic
woding changes, just Jens', Barry's and my wording refactors.
The relevant bits:
5b A function parameter declared with an
*explicit-this-parameter-declaration* is an *explicit this parameter*. An
explicit this parameter shall not be a function parameter pack
([temp.variadic]). An *object member function* is either a non-static
member function or a static member function with an explicit this parameter.
Change 12.6.4 [over.sub] <https://wg21.link/over.sub>/1:
1 A *subscripting operator function* is a function named operator that is a
non-static an object member function with exactly one ordinary member
On Wed, Jul 22, 2020 at 11:14 AM Ville Voutilainen <
> On Wed, 22 Jul 2020 at 12:38, GaÅ¡per AÅ¾man via Std-Proposals
> <std-proposals_at_[hidden]> wrote:
> > Isn't it wonderful that deducing this makes the above SO much easier to
> Does it? an operator needs to be a non-static member function, and a
> deduced-this function isn't.
> >> T & operator(size_t i) &;
> >> const T & operator(size_t i) const &;
> >> T && operator(size_t i) &&;
> >> const T && operator(size_t i) const &&;
STD-PROPOSALS list run by herb.sutter at gmail.com
Standard Proposals Archives on Google Groups