Mark some methods virtual

pull/19348/head
yang-g 6 years ago
parent 17afa603a1
commit b216c34314
  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