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

Client: C++
Patch: Carrey Zhan

apache::xxxxx --> ::apache::xxxxx
This commit is contained in:
Konrad Grochowski 2015-09-25 21:11:55 +02:00
parent e9bdb411fb
commit ce636dd65c

View File

@ -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;