cpp_weekly icon indicating copy to clipboard operation
cpp_weekly copied to clipboard

gcc statement expressions vs lambdas

Open swarren opened this issue 1 year ago • 1 comments

Channel

C++Weekly

Topics

Observation: A gcc statement expression is probably the same thing as a lambda with [&] capture, auto return type, no parameters, immediately invoked.

Length

Short

swarren avatar Mar 22 '23 22:03 swarren

gcc statement expression looks more like a hack made to force macros to behave less errant when constexpr was not a thing.

fcolecumberri avatar Mar 22 '23 23:03 fcolecumberri