[Webkit-unassigned] [Bug 198175] New: [WHLSL] Provide helpers for in-place mutations

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 23 00:30:13 PDT 2019


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

            Bug ID: 198175
           Summary: [WHLSL] Provide helpers for in-place mutations
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGPU
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mmaxfield at apple.com

Something like

template <typename Old, typename New, typename ...Args>
New* replace(Old& old, Args&&... args)
{
    static_assert(sizeof(New) <= sizeof(Old));
    return new (&old) New(std::forward<Args>(args)...);
}

-- 
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/20190523/3029208c/attachment.html>


More information about the webkit-unassigned mailing list