diff options
author | yang-g <yangg@google.com> | 2017-12-11 15:52:50 -0800 |
---|---|---|
committer | yang-g <yangg@google.com> | 2017-12-11 15:52:50 -0800 |
commit | 69aec175625b131ae2305280589cfc87644f9fae (patch) | |
tree | c74cad985177b9232101af17b63413d28d5df46b /include/grpc++ | |
parent | b2cf1bcba2913ff08ce7848f61e9b2bfa337d806 (diff) |
Add dummy operator delete to make VS2015 not complain.
Diffstat (limited to 'include/grpc++')
-rw-r--r-- | include/grpc++/impl/codegen/async_unary_call.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/grpc++/impl/codegen/async_unary_call.h b/include/grpc++/impl/codegen/async_unary_call.h index b9ea5fd19c..2bbbb87503 100644 --- a/include/grpc++/impl/codegen/async_unary_call.h +++ b/include/grpc++/impl/codegen/async_unary_call.h @@ -103,6 +103,13 @@ class ClientAsyncResponseReader final assert(size == sizeof(ClientAsyncResponseReader)); } + // This operator should never be called as the memory should be freed as part + // of the arena destruction. It only exists to provide a matching operator + // delete to the operator new so that some compilers will not complain (see + // Issue# 11301). Note at the time of adding this there is no tests catching + // the compiler warning. + static void operator delete(void*, void*) {} + void StartCall() override { assert(!started_); started_ = true; |