Skip to content

Commit

Permalink
Clang build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren committed Mar 26, 2016
1 parent 9018ac9 commit e1a68fa
Show file tree
Hide file tree
Showing 27 changed files with 319 additions and 243 deletions.
7 changes: 4 additions & 3 deletions contrib/protoc-bnet/BnetServiceGenerator.cpp
Expand Up @@ -173,11 +173,12 @@ void BnetServiceGenerator::GenerateClientMethodImplementations(pb::io::Printer*
"void $classname$::$name$($input_type$ const* request, std::function<void($output_type$ const*)> responseCallback) { \n"
" TC_LOG_DEBUG(\"service.protobuf\", \"%s Server called client method $full_name$($input_type_name${ %s })\",\n"
" GetCallerInfo().c_str(), request->ShortDebugString().c_str());\n"
" SendRequest(service_hash_, $method_id$, request, [callback{ std::move(responseCallback) }](MessageBuffer buffer) {\n"
" std::function<void(MessageBuffer)> callback = [responseCallback](MessageBuffer buffer) -> void {\n"
" $output_type$ response;\n"
" if (response.ParseFromArray(buffer.GetReadPointer(), buffer.GetActiveSize()))\n"
" callback(&response);\n"
" });\n"
" responseCallback(&response);\n"
" };\n"
" SendRequest(service_hash_, $method_id$, request, std::move(callback));\n"
"}\n"
"\n");
}
Expand Down
105 changes: 60 additions & 45 deletions src/server/proto/Client/account_service.pb.cc

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/server/proto/Client/account_types.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/server/proto/Client/attribute_types.pb.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1a68fa

Please sign in to comment.