mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
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:
parent
e9bdb411fb
commit
ce636dd65c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user