diff options
author | Craig Tiller <ctiller@google.com> | 2015-06-05 07:59:33 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-06-05 07:59:33 -0700 |
commit | e8200ba046fa5e389ea99d2fa8a627b939e646fc (patch) | |
tree | c1c142109190d1ea2070c10c9f65c5e5946b81be | |
parent | e6ee9b403c03033ec18c2eefb31846da4d1f69b3 (diff) |
Fix GCC compilation
-rw-r--r-- | include/grpc++/impl/call.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/grpc++/impl/call.h b/include/grpc++/impl/call.h index 98f61b18e1..eef0e90cc9 100644 --- a/include/grpc++/impl/call.h +++ b/include/grpc++/impl/call.h @@ -98,9 +98,7 @@ class CallOpSendMessage { CallOpSendMessage() : send_buf_(nullptr), own_buf_(false) {} template <class M> - bool SendMessage(const M& message) GRPC_MUST_USE_RESULT { - return SerializationTraits<M>::Serialize(message, &send_buf_, &own_buf_); - } + bool SendMessage(const M& message) GRPC_MUST_USE_RESULT; protected: void AddOp(grpc_op* ops, size_t* nops) { @@ -118,6 +116,11 @@ class CallOpSendMessage { bool own_buf_; }; +template <class M> +bool CallOpSendMessage::SendMessage(const M& message) { + return SerializationTraits<M>::Serialize(message, &send_buf_, &own_buf_); +} + template <class R> class CallOpRecvMessage { public: |