Commit 6897bb99 authored by Caleb Epstein's avatar Caleb Epstein

Use fully qualified names of structs in UnPack

parent c9ee9fb9
...@@ -975,8 +975,10 @@ class CppGenerator : public BaseGenerator { ...@@ -975,8 +975,10 @@ class CppGenerator : public BaseGenerator {
if (invector) { if (invector) {
return "*" + val; return "*" + val;
} else { } else {
return "std::unique_ptr<" + type.struct_def->name + return "std::unique_ptr<" +
">(new " + type.struct_def->name + "(*" + val + "))"; WrapInNameSpace (*type.struct_def) +
">(new " +
WrapInNameSpace (*type.struct_def) + "(*" + val + "))";
} }
} else { } else {
return val + "->UnPack()"; return val + "->UnPack()";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment