mirror of https://github.com/Wilfred/difftastic/
Support multidimensional subscripts
This change allows commas inside subscripts. ```cpp auto x = a[1, 2, 3]; ``` From C++23, array subscripts work like arguments to `operator[]` as an n-ary function. Before C++23, `operator[]` must be a unary function, but before C++20, it's possible to use the comma operator inside subscript expressions - and this is done in libraries that use expression templates to achieve multidimensional array syntax. Use of the comma operator in subscript expressions was deprecated in C++20 to make way for the C++23 change to n-ary `operator[]`.pull/708/head
parent
f88bf81238
commit
472002f3bf
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue