3 ms·
No, you don't need this in C++. You can use a normal (brace-delimited) block for this purpose.
by catnaroek 11y ago
No, you don't need this in C++. You can use a normal (brace-delimited) block for this purpose.
- evincarofautumn 11y agoThe key difference being that a lambda is an expression, while a block is not, unless you use GCC’s statement-expression syntax of “({…})”.
- catnaroek 11y agoOh, I forgot that, you're absolutely right. I'm getting too used to languages where everything is an expression. :-)