[Webkit-unassigned] [Bug 187182] New: RectEdges constructor: Use correct template parameter in std::forward<>

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 29 09:31:35 PDT 2018


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

            Bug ID: 187182
           Summary: RectEdges constructor: Use correct template parameter
                    in std::forward<>
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: aboya at igalia.com
                CC: bfulgham at webkit.org, simon.fraser at apple.com,
                    zalan at apple.com

The RectEdges constructor is defined with template<typename U>, but then U is unused while std::forward is receiving the template parameter of the class (which will not be a reference type).

If my knowledge of this templates is not wrong (it may well be), this is causing a copy even when a move would be acceptable.

-- 
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/20180629/f4538e9a/attachment.html>


More information about the webkit-unassigned mailing list