Skip to content

Commit c2b2561

Browse files
Regenerate types with Fast DDS Gen v3.3.1 (#965)
* Regenerate types with Fast-DDS-Gen v3.3.1 Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com> * Regenerate types for both versions of Fast CDR Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com> --------- Signed-off-by: Eugenio Collado <eugeniocollado@eprosima.com>
1 parent 2601f88 commit c2b2561

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

code/Examples/C++/DDSHelloWorld/src/HelloWorldPubSubTypes.cxx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ bool HelloWorldPubSubType::serialize(
8383
ser.serialize_encapsulation();
8484
// Serialize the object.
8585
ser << *p_type;
86+
#if FASTCDR_VERSION_MAJOR > 1
87+
ser.set_dds_cdr_options({0,0});
88+
#else
89+
ser.setDDSCdrOptions(0);
90+
#endif // FASTCDR_VERSION_MAJOR > 1
8691
}
8792
catch (eprosima::fastcdr::exception::Exception& /*exception*/)
8893
{

0 commit comments

Comments
 (0)