Re:Under the hood of C++ lambdas and std::function
by catnaroek on Monday March 28, 2016 @04:18AM
(#11373225)
No, you don't need this in C++. You can use a normal (brace-delimited) block for this purpose.
[ Parent
| on HN ]
Re:Under the hood of C++ lambdas and std::function
by evincarofautumn on Monday March 28, 2016 @06:35AM
(#11373513)
The key difference being that a lambda is an expression, while a block is not, unless you use GCC’s statement-expression syntax of “({…})”.