From d8887c061c90cf055a25cc80fc134da6e9f436ae Mon Sep 17 00:00:00 2001 From: yang-g Date: Thu, 21 Apr 2016 00:03:58 -0700 Subject: [PATCH] Fix compilation error. --- src/compiler/generator_helpers.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compiler/generator_helpers.h b/src/compiler/generator_helpers.h index 6b02b37d4f6..8aa875f9596 100644 --- a/src/compiler/generator_helpers.h +++ b/src/compiler/generator_helpers.h @@ -237,10 +237,8 @@ inline void GetComment(const grpc::protobuf::FileDescriptor *desc, } } -namespace { - // Prefix comment line with "// " and concatenate them into a string. -grpc::string GenerateComments(const std::vector &in) { +inline grpc::string GenerateComments(const std::vector &in) { std::ostringstream oss; for (const grpc::string &elem : in) { if (elem.empty()) { @@ -254,8 +252,6 @@ grpc::string GenerateComments(const std::vector &in) { return oss.str(); } -} // namespace - // Get leading or trailing comments in a string. Comment lines start with "// ". // Leading detached comments are put in in front of leading comments. template