Merge pull request #19348 from yang-g/virtual_me

Mark some methods virtual
pull/19350/head
Yang Gao 6 years ago committed by GitHub
commit 0bee8c41f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      include/grpcpp/impl/codegen/server_callback.h

@ -348,7 +348,8 @@ class ServerBidiReactor : public internal::ServerReactor {
private:
friend class ServerCallbackReaderWriter<Request, Response>;
void BindStream(ServerCallbackReaderWriter<Request, Response>* stream) {
virtual void BindStream(
ServerCallbackReaderWriter<Request, Response>* stream) {
stream_ = stream;
}
@ -382,7 +383,9 @@ class ServerReadReactor : public internal::ServerReactor {
private:
friend class ServerCallbackReader<Request>;
void BindReader(ServerCallbackReader<Request>* reader) { reader_ = reader; }
virtual void BindReader(ServerCallbackReader<Request>* reader) {
reader_ = reader;
}
ServerCallbackReader<Request>* reader_;
};
@ -424,7 +427,9 @@ class ServerWriteReactor : public internal::ServerReactor {
private:
friend class ServerCallbackWriter<Response>;
void BindWriter(ServerCallbackWriter<Response>* writer) { writer_ = writer; }
virtual void BindWriter(ServerCallbackWriter<Response>* writer) {
writer_ = writer;
}
ServerCallbackWriter<Response>* writer_;
};

Loading…
Cancel
Save