mirror of https://github.com/grpc/grpc.git
C++20 compat: use invoke_result_t for C++17 and up (#36016)
C++20 removes std::result_of in favor of std::invoke_result[_t], which was added in C++17. Android builds gRPC with C++20, but gRPC still supports source languages before C++17, so use `#if __cplusplus` to select between std::result_of or std::invoke_result[_t].
Closes #36016
COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36016 from rprichard:cxx20-compat 00b89a2ff4
PiperOrigin-RevId: 635929424
pull/36597/head^2
parent
f4ac0a3093
commit
3d1275ec17
1 changed files with 7 additions and 1 deletions
Loading…
Reference in new issue