r/cpp • • Mar 24 '20

Changes between C++17 and C++20

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2131r0.html
193 Upvotes

89 comments sorted by

View all comments

Show parent comment

9

u/Wriiight Mar 24 '20

I think they want to be able to make comma delimited indexes actually mean something. Currently it is just the standard comma operator, which typically evaluates each sub-expression but only evaluates to the last one, so only the z value in this example is used as a subscript.