Repository: thrift
Updated Branches:
  refs/heads/master e9bdb411f -> ce636dd65


THRIFT-3317: C++ - generated code will properly reference global apache 
namespace

Client: C++
Patch: Carrey Zhan

apache::xxxxx --> ::apache::xxxxx


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/ce636dd6
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/ce636dd6
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/ce636dd6

Branch: refs/heads/master
Commit: ce636dd65c8de50f8f5d8cab3c2514bff98aab23
Parents: e9bdb41
Author: Konrad Grochowski <[email protected]>
Authored: Fri Sep 25 21:11:55 2015 +0200
Committer: Konrad Grochowski <[email protected]>
Committed: Fri Sep 25 21:11:55 2015 +0200

----------------------------------------------------------------------
 compiler/cpp/src/generate/t_cpp_generator.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/ce636dd6/compiler/cpp/src/generate/t_cpp_generator.cc
----------------------------------------------------------------------
diff --git a/compiler/cpp/src/generate/t_cpp_generator.cc 
b/compiler/cpp/src/generate/t_cpp_generator.cc
index 6577b82..4e03d94 100644
--- a/compiler/cpp/src/generate/t_cpp_generator.cc
+++ b/compiler/cpp/src/generate/t_cpp_generator.cc
@@ -1539,7 +1539,7 @@ void 
t_cpp_generator::generate_struct_print_method(std::ofstream& out, t_struct*
 
   indent_up();
 
-  out << indent() << "using apache::thrift::to_string;" << endl;
+  out << indent() << "using ::apache::thrift::to_string;" << endl;
   out << indent() << "out << \"" << tstruct->get_name() << "(\";" << endl;
   struct_ostream_operator_generator::generate_fields(out, 
tstruct->get_members(), indent());
   out << indent() << "out << \")\";" << endl;

Reply via email to