Add an explicit base class pointer to avoid potential breakage.

pull/6445/head
yang-g 9 years ago
parent 66e9d8e8a7
commit 7099d6fed6
  1. 5
      include/grpc++/impl/codegen/call.h

@ -329,8 +329,9 @@ class CallOpGenericRecvMessage {
template <class R>
void RecvMessage(R* message) {
deserialize_.reset(
new CallOpGenericRecvMessageHelper::DeserializeFuncType<R>(message));
CallOpGenericRecvMessageHelper::DeserializeFunc* func =
new CallOpGenericRecvMessageHelper::DeserializeFuncType<R>(message);
deserialize_.reset(func);
}
bool got_message;

Loading…
Cancel
Save