Closed Bug 1774522 Opened 3 years ago Closed 3 years ago

Make Skia C++20 compatible by replacing deprecated std::result_of_t

Categories

(Core :: Graphics, task, P3)

task

Tracking

()

RESOLVED FIXED
103 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox-esr102 --- wontfix
firefox101 --- wontfix
firefox102 --- wontfix
firefox103 --- fixed

People

(Reporter: cpeterson, Assigned: cpeterson)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The C++ std library functions std::result_of and std::result_of_t were deprecated in C++17 and removed in C++20.

Upstream Skia removed use of std::result_of_t in 2021, so we can just copy upstream's new replacement code:

https://skia.googlesource.com/skia/+/7d8cdd5b7f277f3b661e1eea067cf45a467572c6%5E%21/
https://skia.googlesource.com/skia/+/dc976a96ea388ae49fd0ce18d5a07d8fc15779cf%5E%21/

Because we're just extracting code from upstream, our local changes here can be safely overwritten whenever we next vendor a new Skia version.

The C++ std library functions std::result_of and std::result_of_t were deprecated in C++17 and removed in C++20.

Upstream Skia removed use of std::result_of_t in 2021, so we can just copy upstream's new replacement code:

https://skia.googlesource.com/skia/+/7d8cdd5b7f277f3b661e1eea067cf45a467572c6%5E%21/
https://skia.googlesource.com/skia/+/dc976a96ea388ae49fd0ce18d5a07d8fc15779cf%5E%21/

Because we're just extracting code from upstream, our local changes here can be safely overwritten whenever we next vendor a new Skia version.

Pushed by cpeterson@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ac706e426c10 Make Skia C++20 compatible by replacing deprecated std::result_of_t. r=lsalzman
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 103 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: