Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing operators to TypeSupport [11194] #1912

Merged
merged 1 commit into from
Apr 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 23 additions & 9 deletions include/fastdds/dds/topic/TypeSupport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,39 @@ class TypeSupport : public std::shared_ptr<fastdds::dds::TopicDataType>
using Base::operator ->;
using Base::operator *;
using Base::operator bool;
using Base::operator =;

/**
* @brief Constructor
*/
RTPS_DllAPI TypeSupport()
: std::shared_ptr<fastdds::dds::TopicDataType>(nullptr)
{
}
RTPS_DllAPI TypeSupport() noexcept = default;

/**
* @brief Copy Constructor
* @param type Another instance of TypeSupport
*/
RTPS_DllAPI TypeSupport(
const TypeSupport& type)
: std::shared_ptr<fastdds::dds::TopicDataType>(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.
Expand Down