From 2fbc0a911ac5a6e32d0d4d4e3bc8cf66a2cb1ca1 Mon Sep 17 00:00:00 2001 From: Jenia Kogan Date: Wed, 30 Mar 2016 22:42:57 +0300 Subject: [PATCH] Fix compilation error when compiling with DS-5 compiler. UDP destructor and open function should be virtual --- sockets/v0/UDPSocket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sockets/v0/UDPSocket.h b/sockets/v0/UDPSocket.h index 9bfc0c8..86b77a2 100644 --- a/sockets/v0/UDPSocket.h +++ b/sockets/v0/UDPSocket.h @@ -37,7 +37,7 @@ class UDPSocket: public Socket { /** * UDP Socket destructor */ - ~UDPSocket(); + virtual ~UDPSocket(); /** * Open a UDP socket * Instantiates and initializes the underlying socket. Receive is started immediately after @@ -62,7 +62,7 @@ class UDPSocket: public Socket { */ socket_error_t connect(const SocketAddr *address, const uint16_t port); private: - socket_error_t open(const socket_address_family_t af, const socket_proto_family_t pf); + virtual socket_error_t open(const socket_address_family_t af, const socket_proto_family_t pf); }; } // namespace v0