[Webkit-unassigned] [Bug 175244] New: WTF::Function does not allow for reference / non-default constructible return types

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Aug 6 08:45:43 PDT 2017


https://bugs.webkit.org/show_bug.cgi?id=175244

            Bug ID: 175244
           Summary: WTF::Function does not allow for reference /
                    non-default constructible return types
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Web Template Framework
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sam at webkit.org

WTF::Function does not allow for reference / non-default constructible return types. This is an unfortunate limitation as it means you can't return a Ref<> from a WTF::Function.

The reason WTF::Function does not allow this is that it ensures that function that has been set with a nullptr can still be called, and will return the default constructed value of the return value.  I am unclear when this useful.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170806/26201f91/attachment.html>


More information about the webkit-unassigned mailing list