diff options
author | 2018-04-20 10:44:17 -0700 | |
---|---|---|
committer | 2018-04-20 10:44:17 -0700 | |
commit | 9635a04fed00cc1e9b72954cb3f72417b7f10e15 (patch) | |
tree | 0951982aa11a62c833384d36c15fe23dd346c879 /src/core/ext/filters/client_channel/method_params.h | |
parent | a1459aa6ce2a11f8d11a067cb6c86e6af84ffd71 (diff) |
Work-around for ref-counted subclass deletion address problem.
Diffstat (limited to 'src/core/ext/filters/client_channel/method_params.h')
-rw-r--r-- | src/core/ext/filters/client_channel/method_params.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/method_params.h b/src/core/ext/filters/client_channel/method_params.h index 099924edf3..a31d360f17 100644 --- a/src/core/ext/filters/client_channel/method_params.h +++ b/src/core/ext/filters/client_channel/method_params.h @@ -60,6 +60,10 @@ class ClientChannelMethodParams : public RefCounted<ClientChannelMethodParams> { template <typename T, typename... Args> friend T* grpc_core::New(Args&&... args); + // So Delete() can call our private dtor. + template <typename T> + friend void grpc_core::Delete(T*); + ClientChannelMethodParams() {} virtual ~ClientChannelMethodParams() {} |