diff options
author | 2016-02-22 17:41:41 -0800 | |
---|---|---|
committer | 2016-02-22 17:41:41 -0800 | |
commit | ef02fb9d6ffa9b0df265a100cdd6262515c6029d (patch) | |
tree | 7f14edf5e605112ae8b984843ef865e8735216da /include/grpc++ | |
parent | 10e269897f3f664edb22befc646522b18e2d3586 (diff) | |
parent | 349bba9179f27a058470de3c2fd2ac6c9ccb80b5 (diff) |
Merge branch 'master' of github.com:grpc/grpc into alarm_cpp
Diffstat (limited to 'include/grpc++')
-rw-r--r-- | include/grpc++/impl/codegen/call.h | 3 | ||||
-rw-r--r-- | include/grpc++/support/channel_arguments.h | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h index e65349ddd3..5e450b0d24 100644 --- a/include/grpc++/impl/codegen/call.h +++ b/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 }; diff --git a/include/grpc++/support/channel_arguments.h b/include/grpc++/support/channel_arguments.h index 4e530d4b89..a9ede35f90 100644 --- a/include/grpc++/support/channel_arguments.h +++ b/include/grpc++/support/channel_arguments.h @@ -95,6 +95,17 @@ class ChannelArguments { friend class SecureChannelCredentials; friend class testing::ChannelArgumentsTest; + /// Default pointer argument operations. + struct PointerVtableMembers { + static void* Copy(void* in) { return in; } + static void Destroy(void* in) {} + static int Compare(void* a, void* b) { + if (a < b) return -1; + if (a > b) return 1; + return 0; + } + }; + // Returns empty string when it is not set. grpc::string GetSslTargetNameOverride() const; |