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.


https://reviews.llvm.org/D43662



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to