Merge pull request #13713 from yang-g/delete

Add dummy operator delete to make VS2015 not complain.
pull/13728/head
Yang Gao 7 years ago committed by GitHub
commit 8cfaf4ec4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      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
// https://github.com/grpc/grpc/issues/11301) Note at the time of adding this
// there are no tests catching the compiler warning.
static void operator delete(void*, void*) { assert(0); }
void StartCall() override {
assert(!started_);
started_ = true;

Loading…
Cancel
Save