Y
Hacker News
new
|
ask
|
show
|
jobs
by
DerekL
925 days ago
You can do that in modern C++, except that you have to create a lambda and assign it to a variable.
1 comments
mrlonglong
925 days ago
That's just syntactic sugar, but yes that works and I had forgotten about lambdas.
link