aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2017-10-13 14:11:45 -0700
committerGravatar Vijay Pai <vpai@google.com>2017-10-13 14:11:45 -0700
commit953afecaafbe166411f08465903751da3c0bf155 (patch)
tree9723ce0bf2e8071349e9104f64c8772ed06e9206 /include
parent56a9316e01bbd4aa88417a95e8a454d94ee48da2 (diff)
Add an explicit void 2nd parameter to invocation of SerializationTraits
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/impl/codegen/call.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h
index d9988e51fc..00521a55ff 100644
--- a/include/grpc++/impl/codegen/call.h
+++ b/include/grpc++/impl/codegen/call.h
@@ -318,7 +318,11 @@ template <class M>
Status CallOpSendMessage::SendMessage(const M& message, WriteOptions options) {
write_options_ = options;
bool own_buf;
- Status result = SerializationTraits<M>::Serialize(
+ // TODO(vjpai): Remove the void below when possible
+ // The void in the template parameter below should not be needed
+ // (since it should be implicit) but is needed due to an observed
+ // difference in behavior between clang and gcc for certain internal users
+ Status result = SerializationTraits<M, void>::Serialize(
message, send_buf_.bbuf_ptr(), &own_buf);
if (!own_buf) {
send_buf_.Duplicate();