Add an explicit void 2nd parameter to invocation of SerializationTraits

pull/13004/head
Vijay Pai 7 years ago
parent 56a9316e01
commit 953afecaaf
  1. 6
      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();

Loading…
Cancel
Save