Loading
Bug 1774522 - Make Skia C++20 compatible by replacing deprecated std::result_of_t. r=lsalzman
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. Differential Revision: https://phabricator.services.mozilla.com/D149490