diff --git a/include/fastdds/dds/topic/TypeSupport.hpp b/include/fastdds/dds/topic/TypeSupport.hpp index a17c503b7dd..12bfd6cf593 100644 --- a/include/fastdds/dds/topic/TypeSupport.hpp +++ b/include/fastdds/dds/topic/TypeSupport.hpp @@ -57,25 +57,39 @@ class TypeSupport : public std::shared_ptr using Base::operator ->; using Base::operator *; using Base::operator bool; - using Base::operator =; /** * @brief Constructor */ - RTPS_DllAPI TypeSupport() - : std::shared_ptr(nullptr) - { - } + RTPS_DllAPI TypeSupport() noexcept = default; /** * @brief Copy Constructor * @param type Another instance of TypeSupport */ RTPS_DllAPI TypeSupport( - const TypeSupport& type) - : std::shared_ptr(type) - { - } + const TypeSupport& type) noexcept = default; + + /** + * @brief Move Constructor + * @param type Another instance of TypeSupport + */ + RTPS_DllAPI TypeSupport( + TypeSupport&& type) noexcept = default; + + /** + * @brief Copy Assignment + * @param type Another instance of TypeSupport + */ + RTPS_DllAPI TypeSupport& operator = ( + const TypeSupport& type) noexcept = default; + + /** + * @brief Move Assignment + * @param type Another instance of TypeSupport + */ + RTPS_DllAPI TypeSupport& operator = ( + TypeSupport&& type) noexcept = default; /*! * \brief TypeSupport constructor that receives a TopicDataType pointer.