Date: Fri, 26 Mar 2021 08:36:10 -0500
On Fri, Mar 26, 2021 at 8:34 AM Corentin via SG10 <sg10_at_[hidden]>
wrote:
> Hello,
>
> I was tasked yesterday's EWG meeting to reach you about a feature macro
> for P2128,
> which does not currently provide one.
>
> I suppose there are 2 questions:
> Do we need one?
>
> I can't really imagine people doing
>
> #ifdef __cpp_multidimensional_subscript
> foo[x, y]
> #else
> foo(x,y)
> #endif
>
> Or something of the sort.
>
> If we do need one, would __cpp_multidimensional_subscript be a
> satisfactory name?
>
> Thanks,
>
> Corentin
>
I could imagine a *type* providing a operator[](Args...) only if that's
possible, so I do think we need one.
I have no comment about the name.
Barry
wrote:
> Hello,
>
> I was tasked yesterday's EWG meeting to reach you about a feature macro
> for P2128,
> which does not currently provide one.
>
> I suppose there are 2 questions:
> Do we need one?
>
> I can't really imagine people doing
>
> #ifdef __cpp_multidimensional_subscript
> foo[x, y]
> #else
> foo(x,y)
> #endif
>
> Or something of the sort.
>
> If we do need one, would __cpp_multidimensional_subscript be a
> satisfactory name?
>
> Thanks,
>
> Corentin
>
I could imagine a *type* providing a operator[](Args...) only if that's
possible, so I do think we need one.
I have no comment about the name.
Barry
Received on 2021-03-26 08:36:23