You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jf...@apache.org on 2015/10/01 19:17:07 UTC
[4/6] thrift git commit: THRIFT-3317: C++ - generated code will
properly reference global apache namespace
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/0.9.3
Commit: ce636dd65c8de50f8f5d8cab3c2514bff98aab23
Parents: e9bdb41
Author: Konrad Grochowski <hc...@apache.org>
Authored: Fri Sep 25 21:11:55 2015 +0200
Committer: Konrad Grochowski <hc...@apache.org>
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;