diff --git a/include/fastcdr/Cdr.h b/include/fastcdr/Cdr.h index c7f1bbba..7d09d062 100644 --- a/include/fastcdr/Cdr.h +++ b/include/fastcdr/Cdr.h @@ -282,68 +282,6 @@ class Cdr_DllAPI Cdr origin_ = offset_; } - /*! - * @brief This operator template is used to serialize any other non-basic type. - * @param type_t A reference to the object that will be serialized in the buffer. - * @return Reference to the eprosima::fastcdr::Cdr object. - * @exception exception::NotEnoughMemoryException This exception is thrown when trying to serialize a position that exceeds the internal memory size. - */ - template::value>::type* = nullptr> - inline Cdr& operator <<( - const _T& type_t) - { - type_t.serialize(*this); - return *this; - } - - template::value && - std::is_same::type, int32_t>::value>::type* = nullptr> - inline Cdr& operator <<( - const _T& enum_t) - { - return serialize(static_cast(enum_t)); - } - - template::value && - std::is_same::type, uint32_t>::value>::type* = nullptr> - inline Cdr& operator <<( - const _T& enum_t) - { - return serialize(static_cast(enum_t)); - } - - template::value && - std::is_same::type, int16_t>::value>::type* = nullptr> - inline Cdr& operator <<( - const _T& enum_t) - { - return serialize(static_cast(enum_t)); - } - - template::value && - std::is_same::type, uint16_t>::value>::type* = nullptr> - inline Cdr& operator <<( - const _T& enum_t) - { - return serialize(static_cast(enum_t)); - } - - template::value && - std::is_same::type, int8_t>::value>::type* = nullptr> - inline Cdr& operator <<( - const _T& enum_t) - { - return serialize(static_cast(enum_t)); - } - - template::value && - std::is_same::type, uint8_t>::value>::type* = nullptr> - inline Cdr& operator <<( - const _T& enum_t) - { - return serialize(static_cast(enum_t)); - } - /*! * @brief This operator template is used to serialize any other non-basic type. * @param type_t A reference to the object that will be serialized in the buffer.