[Webkit-unassigned] [Bug 247607] New: Replace std::remove_cvref with std::decay where appropriate

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 8 04:21:22 PST 2022


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

            Bug ID: 247607
           Summary: Replace std::remove_cvref with std::decay where
                    appropriate
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: zan at falconsigh.net
                CC: darin at apple.com

Bug #247542 placed std::remove_cvref to use where previously std::remove_const/std::remove_cv and std::remove_reference were used together, simply because std::remove_cvref is now available due to C++20 being enforced.

In some cases use of std::decay would be more fitting. Besides whittling down reference and constness for a given type, std::decay also converts array and function types to pointer-based types.
https://en.cppreference.com/w/cpp/types/decay

-- 
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/20221108/86302775/attachment.htm>


More information about the webkit-unassigned mailing list