Merge pull request #6445 from yang-g/unique_ptr_reset

Add an explicit base class pointer to avoid potential breakage.
pull/6254/head
Jan Tattermusch 9 years ago
commit 057a2f8f7c
  1. 7
      include/grpc++/impl/codegen/call.h

@ -329,8 +329,11 @@ class CallOpGenericRecvMessage {
template <class R>
void RecvMessage(R* message) {
deserialize_.reset(
new CallOpGenericRecvMessageHelper::DeserializeFuncType<R>(message));
// Use an explicit base class pointer to avoid resolution error in the
// following unique_ptr::reset for some old implementations.
CallOpGenericRecvMessageHelper::DeserializeFunc* func =
new CallOpGenericRecvMessageHelper::DeserializeFuncType<R>(message);
deserialize_.reset(func);
}
bool got_message;

Loading…
Cancel
Save