Fix build on old compilers (#2220)
Fix build on old compilers (#2220)

Signed-off-by: Miguel Company <397e72ca524b8ec9f06ef35fe0c74285a78d6afb@eprosima.com>
eProsima/Fast-RTPS,eProsima/Fast-DDS,eProsima/Fast-DDS,eProsima/Fast-RTPS,eProsima/Fast-DDS,eProsima/Fast-RTPS,eProsima/Fast-RTPS,eProsima/Fast-DDS,eProsima/Fast-RTPS,eProsima/Fast-DDS