C++Guns – RoboBlog

29.07.2019

C++ Guns: P1161R3 Deprecate uses of the comma operator in subscripting expressions

Filed under: Allgemein — Tags: — Thomas @ 14:07

Endlich.

ND Arrays in std C++ wir kommen

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1161r3.html

Don't forget GCC -Werror=unused-value

array[x]      // Ok
array[(x,y)]  // Ok, uses y as index/key
array[x,y]    // Deprecated, uses y as index/key

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress