Šimon Tóth’s Post

View profile for Šimon Tóth

C++ Educational Content Creator | 20 years of Software Engineering experience distilled into digestible daily posts

The C++23 introduced a major change for the subscript operator, allowing it to take multiple arguments. When multiple arguments are provided, they are separated by a comma. The standard comma operator in subscripts was deprecated in C++20. This finally gives C++ a way to interface with multi-dimensional data structures naturally. Because overloaded operators can have arbitrary arguments, the multi-argument operator[] can also serve as an alternative to the operator(). Compiler Explorer link: https://lnkd.in/eAuDBbpq #cpp #cplusplus #coding #programming #dailybiteofcpp

  • text
Chris Ryan

ISO/IEC JTC1/SC22/WG21 - The…11K followers

1y

Still waiting for MSVC to implement this wg21.link/P2128R6 and many other C++23 language features. GCC & Clang are doing better. Notice all the red in the core language features for MSVC, very sad. en.cppreference.com/w/cpp/compiler_support/23 MSVC is doing much better on STL/library support.

To view or add a comment, sign in

Explore content categories