[webkit-dev] Should we ever use std::function instead of WTF::Function?
cdumez at apple.com
Tue Jun 13 12:31:01 PDT 2017
We already have BlockPtr for passing a Function as a lambda block.
> On Jun 13, 2017, at 12:29 PM, Alex Christensen <achristensen at apple.com> wrote:
> std::function, c++ lambda, and objc blocks are all interchangeable. WTF::Functions cannot be used as objc blocks because the latter must be copyable. Until that changes or we stop using objc, we cannot completely eliminate std::function from WebKit.
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-dev