22-grpc-code-output.patch 534 B

1234567891011121314151617
  1. --- a/src/core/lib/transport/metadata_batch.cc (index)
  2. +++ b/src/core/lib/transport/metadata_batch.cc (working tree)
  3. @@ -26,6 +26,14 @@
  4. #include "src/core/lib/transport/timeout_encoding.h"
  5. +template<>
  6. +void Out<grpc_status_code>(IOutputStream& os, grpc_status_code t) {
  7. + // We use ::ToString for convertation of status code to string,
  8. + // but it requries definition of the void Out<T>
  9. + // see util/stream/output.h for details
  10. + os << static_cast<int>(t);
  11. +}
  12. +
  13. namespace grpc_core {
  14. namespace metadata_detail {