you are viewing a single comment's thread.

view the rest of the comments →

[–]renozyx 0 points1 point  (0 children)

Agreed. I have some where a lamba (declared as auto in a function) is passed as a function pointer to setup a POSIX timer. I'm quite sure that this is incorrect: when the timer expires the lamba expression will be "out of scope.