Index: ipc/ipc_message_utils.h |
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h |
index 597729705a952ca4c6ef5c3c6262c92036b77b52..1afb36ee94e06ab3c2c9e62b19f08c6a4dc4f9b0 100644 |
--- a/ipc/ipc_message_utils.h |
+++ b/ipc/ipc_message_utils.h |
@@ -906,33 +906,9 @@ class SyncMessageSchema { |
return ok; |
} |
- template<typename TA> |
- static void WriteReplyParams(Message* reply, TA a) { |
- ReplyParam p(a); |
- WriteParam(reply, p); |
- } |
- |
- template<typename TA, typename TB> |
- static void WriteReplyParams(Message* reply, TA a, TB b) { |
- ReplyParam p(a, b); |
- WriteParam(reply, p); |
- } |
- |
- template<typename TA, typename TB, typename TC> |
- static void WriteReplyParams(Message* reply, TA a, TB b, TC c) { |
- ReplyParam p(a, b, c); |
- WriteParam(reply, p); |
- } |
- |
- template<typename TA, typename TB, typename TC, typename TD> |
- static void WriteReplyParams(Message* reply, TA a, TB b, TC c, TD d) { |
- ReplyParam p(a, b, c, d); |
- WriteParam(reply, p); |
- } |
- |
- template<typename TA, typename TB, typename TC, typename TD, typename TE> |
- static void WriteReplyParams(Message* reply, TA a, TB b, TC c, TD d, TE e) { |
- ReplyParam p(a, b, c, d, e); |
+ template<typename... T> |
Tom Sepez
2015/03/25 17:11:58
Nit: space before < (not your fault, but lets fix
|
+ static void WriteReplyParams(Message* reply, T... a) { |
+ ReplyParam p(a...); |
WriteParam(reply, p); |
} |
}; |