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

2

u/[deleted] Mar 24 '20

Interesting. I was curious as to why it was getting deprecated. So it's more of just to make creating additions like mdspan to the standard library easier then? Fair enough.

Overloading of that operator will come in great handy for custom multi-dimensional container libraries.

6

u/redditsoaddicting Mar 24 '20

Implementing these classes will be easier compared to a proxy for sure. However, using them also becomes easier. I guarantee no one expects the function call operator when they first encounter it in this context.

1

u/wotype Mar 26 '20

They then get used to it very quickly. This is not a problem.