From d1efb5d48cae18c4f051eb1a8bea0a59e13c9761 Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Mon, 10 Jan 2022 20:44:25 +0000 Subject: [PATCH] reader/wgsl: Replace std::result_of with std::invoke_result With C++17, std::result_of has been deprecated and superceeded with std::invoke_result. std::result_of triggers a compiler warning about use of a deprecated feature, which is causing the ossfuzz builds to fail Issue: oss-fuzz:43441 Change-Id: Ie4ed670dd5b25b9059d5feb8056e37a22dad3cbf Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/75981 Kokoro: Kokoro Reviewed-by: Antonio Maiorano Commit-Queue: Ben Clayton --- src/reader/wgsl/parser_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader/wgsl/parser_impl.h b/src/reader/wgsl/parser_impl.h index 203715047e..77c97e266b 100644 --- a/src/reader/wgsl/parser_impl.h +++ b/src/reader/wgsl/parser_impl.h @@ -695,7 +695,7 @@ class ParserImpl { private: /// ReturnType resolves to the return type for the function or lambda F. template - using ReturnType = typename std::result_of::type; + using ReturnType = typename std::invoke_result::type; /// ResultType resolves to `T` for a `RESULT` of type Expect. template