diff options
Diffstat (limited to 'cpp/src/slice2cpp/GenUtil.cpp')
-rw-r--r-- | cpp/src/slice2cpp/GenUtil.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/src/slice2cpp/GenUtil.cpp b/cpp/src/slice2cpp/GenUtil.cpp index 1a94c7a1a41..9fa50d2553c 100644 --- a/cpp/src/slice2cpp/GenUtil.cpp +++ b/cpp/src/slice2cpp/GenUtil.cpp @@ -287,6 +287,13 @@ Slice::writeMarshalUnmarshalCode(Output& out, const TypePtr& type, const string& return; } + StructPtr st = StructPtr::dynamicCast(type); + if (st) + { + out << nl << param << ".__" << func << stream << ");"; + return; + } + SequencePtr seq = SequencePtr::dynamicCast(type); if (seq) { |