aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-02-17 18:01:18 -0800
committerGravatar David Garcia Quintas <dgq@google.com>2016-02-17 18:23:15 -0800
commit4105505b334013c638b486bb34f26f7b090b46ef (patch)
tree00cad63aa694aaafbfcf719b29ccf998f92c89fb /include
parent3cce2ecb12a8528487e83389cdfd0e32ca0633b7 (diff)
Fixed refactoring of grpc_arg pointer vtable
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/support/channel_arguments.h11
1 files changed, 11 insertions, 0 deletions
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;