Merge pull request #5330 from dgquintas/call_virtual_dtor

Added missing virtual dtor
pull/5257/head
Craig Tiller 9 years ago
commit 17ddc83b33
  1. 3
      include/grpc++/impl/codegen/call.h

@ -272,6 +272,7 @@ namespace CallOpGenericRecvMessageHelper {
class DeserializeFunc {
public:
virtual Status Deserialize(grpc_byte_buffer* buf, int max_message_size) = 0;
virtual ~DeserializeFunc() {}
};
template <class R>
@ -283,6 +284,8 @@ class DeserializeFuncType GRPC_FINAL : public DeserializeFunc {
return SerializationTraits<R>::Deserialize(buf, message_, max_message_size);
}
~DeserializeFuncType() override {}
private:
R* message_; // Not a managed pointer because management is external to this
};

Loading…
Cancel
Save