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