diff --git a/src/main/java/com/eprosima/fastcdr/idl/templates/TypesSwigInterface.stg b/src/main/java/com/eprosima/fastcdr/idl/templates/TypesSwigInterface.stg index 117b2ba0..36950815 100644 --- a/src/main/java/com/eprosima/fastcdr/idl/templates/TypesSwigInterface.stg +++ b/src/main/java/com/eprosima/fastcdr/idl/templates/TypesSwigInterface.stg @@ -104,6 +104,7 @@ template_sequence(typecode) ::= << $if(typecode.contentTypeCode.isSequenceType)$ $template_sequence(typecode.contentTypeCode)$ $elseif(typecode.contentTypeCode.primitive)$ +$if(!typecode.contentTypeCode.isType_7)$ %extend std::vector<$typecode.contentTypeCode.cppTypename$> { const $typecode.contentTypeCode.cppTypename$* get_buffer() const @@ -112,6 +113,7 @@ $elseif(typecode.contentTypeCode.primitive)$ } } $endif$ +$endif$ %template($template_sequence_name(typecode.contentTypeCode)$) std::vector<$typecode.contentTypeCode.cppTypename$>; >>