Skip to content

Commit

Permalink
Make test_UDPv4TransportDescriptor non-copyable and non-moveable (#…
Browse files Browse the repository at this point in the history
…4017)

* Make `test_UDPv4TransportDescriptor` non-copyable and default moveable

* Make test_UDPv4TransportDescriptor non-moveable

Signed-off-by: Miguel Company <[email protected]>

---------

Signed-off-by: Miguel Company <[email protected]>
  • Loading branch information
MiguelCompany authored Nov 14, 2023
1 parent c216133 commit bb96985
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions include/fastdds/rtps/transport/test_UDPv4TransportDescriptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,19 @@ struct test_UDPv4TransportDescriptor : public SocketTransportDescriptor

//! Copy constructor
RTPS_DllAPI test_UDPv4TransportDescriptor(
const test_UDPv4TransportDescriptor& t) = default;
const test_UDPv4TransportDescriptor& t) = delete;

//! Copy assignment
RTPS_DllAPI test_UDPv4TransportDescriptor& operator =(
const test_UDPv4TransportDescriptor& t) = default;
const test_UDPv4TransportDescriptor& t) = delete;

//! Move constructor
RTPS_DllAPI test_UDPv4TransportDescriptor(
test_UDPv4TransportDescriptor&& t) = delete;

//! Move assignment
RTPS_DllAPI test_UDPv4TransportDescriptor& operator =(
test_UDPv4TransportDescriptor&& t) = delete;

//! Comparison operator
// Filters are not included
Expand Down

0 comments on commit bb96985

Please sign in to comment.