From bb96985178a4cbcca070f45cda4193696084f378 Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Tue, 14 Nov 2023 16:45:19 +0100 Subject: [PATCH] Make `test_UDPv4TransportDescriptor` non-copyable and non-moveable (#4017) * Make `test_UDPv4TransportDescriptor` non-copyable and default moveable * Make test_UDPv4TransportDescriptor non-moveable Signed-off-by: Miguel Company --------- Signed-off-by: Miguel Company --- .../rtps/transport/test_UDPv4TransportDescriptor.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/fastdds/rtps/transport/test_UDPv4TransportDescriptor.h b/include/fastdds/rtps/transport/test_UDPv4TransportDescriptor.h index f63b2fc793c..dafa7798ae8 100644 --- a/include/fastdds/rtps/transport/test_UDPv4TransportDescriptor.h +++ b/include/fastdds/rtps/transport/test_UDPv4TransportDescriptor.h @@ -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