C++ Logo

sg10

Advanced search

[SG10] Feature macro for P2128 - Multidimensional subscript operator

From: Corentin <corentin.jabot_at_[hidden]>
Date: Fri, 26 Mar 2021 14:05:46 +0100
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

Received on 2021-03-26 08:06:27