Skip to content
Snippets Groups Projects
Commit 849c7ca4 authored by Craig Tiller's avatar Craig Tiller
Browse files

prettify comment

parent 65d3ab2a
No related branches found
No related tags found
No related merge requests found
...@@ -333,9 +333,8 @@ bool Server::Start(ServerCompletionQueue** cqs, size_t num_cqs) { ...@@ -333,9 +333,8 @@ bool Server::Start(ServerCompletionQueue** cqs, size_t num_cqs) {
unknown_method_.reset(new RpcServiceMethod( unknown_method_.reset(new RpcServiceMethod(
"unknown", RpcMethod::BIDI_STREAMING, new UnknownMethodHandler)); "unknown", RpcMethod::BIDI_STREAMING, new UnknownMethodHandler));
// Use of emplace_back with just constructor arguments is not accepted // Use of emplace_back with just constructor arguments is not accepted
// here // here by gcc-4.4 because it can't match the anonymous nullptr with a
// by gcc-4.4 because it can't match the anonymous nullptr with a proper // proper constructor implicitly. Construct the object and use push_back.
// constructor implicitly. Construct the object and use push_back.
sync_methods_->push_back(SyncRequest(unknown_method_.get(), nullptr)); sync_methods_->push_back(SyncRequest(unknown_method_.get(), nullptr));
} }
for (size_t i = 0; i < num_cqs; i++) { for (size_t i = 0; i < num_cqs; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment