blob: 34edcb065735164af64735a76c1336e7621a8743 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
--- include/private/SkTemplates.h
+++ include/private/SkTemplates.h
@@ -453,12 +453,12 @@
template<typename C, std::size_t... Is>
constexpr auto SkMakeArrayFromIndexSequence(C c, std::index_sequence<Is...>)
--> std::array<std::result_of_t<C(std::size_t)>, sizeof...(Is)> {
+-> std::array<std::invoke_result_t<C, std::size_t>, sizeof...(Is)> {
return {{ c(Is)... }};
}
template<size_t N, typename C> constexpr auto SkMakeArray(C c)
--> std::array<std::result_of_t<C(std::size_t)>, N> {
+-> std::array<std::invoke_result_t<C, std::size_t>, N> {
return SkMakeArrayFromIndexSequence(c, std::make_index_sequence<N>{});
}
|