labath added a comment.

What do you think about a syntax like:

  lldb_utility::CleanUp cleanup_our(::close, our_socket); // The CleanUp 
constructor creates the std::function internally

This would be a generalization of your syntax, so you could still use a lambda 
when needed, but you could avoid the lambda-capture dance for the simple cases.

lldb-commits mailing list

Reply via email to