C++11 lambda function

Bo Lorentsen bl at lue.dk
Tue Jul 18 10:28:32 CEST 2017


Hi ...

First, thanks for a really useful event library, it is a really good
example in a minimalistic design.

I have been using C++11 in production for a while, and I have been using
lambda functions too, with all the benefit this gives in the code layout.

So I like to know if anyone have tried to make use lambda functions as
ev++ callbacks ?

I found this article in on stacktrace :
https://stackoverflow.com/questions/28746744/passing-lambda-as-function-pointer

And it seems like it should be possible to make a capturing function
pointer from an lambda, but I like to know if there is any other ideas
as how to do this, or even plans to make this possible directly
(ev++11.h :-)) ?

Regards

/BL





More information about the libev mailing list