From 555121f96e769fdeb9529e7381560d8bbb6e2713 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 30 Oct 2016 12:59:30 +0100 Subject: Make deleted TcpSocket constructors public --- src/TcpSocket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/TcpSocket.h') diff --git a/src/TcpSocket.h b/src/TcpSocket.h index 5a4a808..8df913f 100644 --- a/src/TcpSocket.h +++ b/src/TcpSocket.h @@ -67,6 +67,8 @@ class TcpSocket ~TcpSocket(); TcpSocket(TcpSocket&& other); TcpSocket& operator=(TcpSocket&& other); + TcpSocket(const TcpSocket& other) = delete; + TcpSocket& operator=(const TcpSocket& other) = delete; int close(); @@ -94,8 +96,6 @@ class TcpSocket private: TcpSocket(SOCKET sock, InetAddress own, InetAddress remote); - TcpSocket(const TcpSocket& other) = delete; - TcpSocket& operator=(const TcpSocket& other) = delete; /// The address on which the socket is bound. InetAddress m_own_address; -- cgit v1.2.3