[webkit-dev] Should we ever use std::function instead of WTF::Function?
beidson at apple.com
Tue Jun 13 15:54:58 PDT 2017
> On Jun 13, 2017, at 12:37 PM, Alex Christensen <achristensen at apple.com> wrote:
> I’d be opposed to adding a copy constructor to WTF::Function because the non-copyability of WTF::Function is why we made it, and it has prevented many bugs.
The lack of a copy c’tor in WTF::Function turns the compiler into a tool that prevents bugs that engineers would’ve otherwise introduced.
Whatever the goal of the refactoring is here, for me it’s an absolute deal breaker for us to end up without a <function type> that is move-only.
More information about the webkit-dev