diff options
author | 2015-04-28 17:07:35 -0700 | |
---|---|---|
committer | 2015-04-28 17:07:35 -0700 | |
commit | 6eda2d7c8e4f0bcdfc3eb0a178bd8824fa66516f (patch) | |
tree | de7ebfd1159176becb87390bbb2f59eb3c911526 | |
parent | c48f26f5dc519fec2732bdf5fd29eaa50ad283ac (diff) | |
parent | 3691c3322d09b9a7225745695650772981923028 (diff) |
Merge pull request #1386 from ctiller/cxx
Mac C++ compile fix
-rw-r--r-- | include/grpc++/channel_interface.h | 7 | ||||
-rw-r--r-- | src/cpp/client/channel.h | 1 |
2 files changed, 5 insertions, 3 deletions
diff --git a/include/grpc++/channel_interface.h b/include/grpc++/channel_interface.h index 4d48974e69..10fb9538bc 100644 --- a/include/grpc++/channel_interface.h +++ b/include/grpc++/channel_interface.h @@ -34,6 +34,8 @@ #ifndef GRPCXX_CHANNEL_INTERFACE_H #define GRPCXX_CHANNEL_INTERFACE_H +#include <memory> + #include <grpc++/status.h> #include <grpc++/impl/call.h> @@ -47,11 +49,12 @@ class CompletionQueue; class RpcMethod; class CallInterface; -class ChannelInterface : public CallHook { +class ChannelInterface : public CallHook, + public std::enable_shared_from_this<ChannelInterface> { public: virtual ~ChannelInterface() {} - virtual void *RegisterMethod(const char *method_name) = 0; + virtual void* RegisterMethod(const char* method_name) = 0; virtual Call CreateCall(const RpcMethod& method, ClientContext* context, CompletionQueue* cq) = 0; }; diff --git a/src/cpp/client/channel.h b/src/cpp/client/channel.h index 46009d20ba..cd239247c8 100644 --- a/src/cpp/client/channel.h +++ b/src/cpp/client/channel.h @@ -51,7 +51,6 @@ class Credentials; class StreamContextInterface; class Channel GRPC_FINAL : public GrpcLibrary, - public std::enable_shared_from_this<Channel>, public ChannelInterface { public: Channel(const grpc::string& target, grpc_channel* c_channel); |