diff options
author | Vijay Pai <vpai@google.com> | 2016-06-10 12:25:32 -0700 |
---|---|---|
committer | Vijay Pai <vpai@google.com> | 2016-06-10 12:25:32 -0700 |
commit | 15855f3e7fbf8407393e70dd3c92ee2b0a871430 (patch) | |
tree | 92ddc4ce919858b492a6b0bce6758e27e4b03ab5 /include/grpc++ | |
parent | eac07c3cc8bad2c704931186aa4e23851d30df56 (diff) |
Switch server builder plugin API to something that will work with gcc4.4
Diffstat (limited to 'include/grpc++')
-rw-r--r-- | include/grpc++/impl/server_builder_option.h | 2 | ||||
-rw-r--r-- | include/grpc++/server_builder.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/grpc++/impl/server_builder_option.h b/include/grpc++/impl/server_builder_option.h index 2b7e89f5e5..f736cab0e4 100644 --- a/include/grpc++/impl/server_builder_option.h +++ b/include/grpc++/impl/server_builder_option.h @@ -50,7 +50,7 @@ class ServerBuilderOption { virtual void UpdateArguments(ChannelArguments* args) = 0; /// Alter the ServerBuilderPlugin map that will be added into ServerBuilder. virtual void UpdatePlugins( - std::map<grpc::string, std::unique_ptr<ServerBuilderPlugin> >* + std::vector<std::unique_ptr<ServerBuilderPlugin> >* plugins) = 0; }; diff --git a/include/grpc++/server_builder.h b/include/grpc++/server_builder.h index 8525cb70cb..e1f485f091 100644 --- a/include/grpc++/server_builder.h +++ b/include/grpc++/server_builder.h @@ -150,7 +150,7 @@ class ServerBuilder { std::vector<Port> ports_; std::vector<ServerCompletionQueue*> cqs_; std::shared_ptr<ServerCredentials> creds_; - std::map<grpc::string, std::unique_ptr<ServerBuilderPlugin>> plugins_; + std::vector<std::unique_ptr<ServerBuilderPlugin>> plugins_; AsyncGenericService* generic_service_; }; |