diff options
author | 2016-02-17 19:24:20 -0800 | |
---|---|---|
committer | 2016-02-17 19:24:20 -0800 | |
commit | c15cd723ebabbab4825480032b56a2ddd9a8b76b (patch) | |
tree | a8c29c60d055a11cbab0295e496f89c5e94017fb /include | |
parent | 3cce2ecb12a8528487e83389cdfd0e32ca0633b7 (diff) | |
parent | 1689990ff391b12f7bf4d6ce68867928d81e24de (diff) |
Merge pull request #5301 from dgquintas/fix_grpc_args
Fixed refactoring of grpc_arg pointer vtable
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc++/support/channel_arguments.h | 11 |
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; |