From 9080d6edf219ceb684f815ed7c699d1095eb16c9 Mon Sep 17 00:00:00 2001
From: Daniel M <daniel.q.mueller@stud.h-da.de>
Date: Sat, 29 May 2021 15:42:45 +0200
Subject: [PATCH] Fix for real

---
 src/sockcopy.cpp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/sockcopy.cpp b/src/sockcopy.cpp
index 9c4b4b6..f08223d 100644
--- a/src/sockcopy.cpp
+++ b/src/sockcopy.cpp
@@ -4,38 +4,38 @@ namespace netlib
 {
 
 
-SockCopy<TcpStream> wrapCopy(TcpStream & other, bool disableAutoclose = true)
+SockCopy<TcpStream> wrapCopy(TcpStream & other, bool disableAutoclose)
 {
     if (disableAutoclose) other.setAutoclose(false);
     return SockCopy<TcpStream>(other);
 }
 
-SockCopy<TcpListener> wrapCopy(TcpListener & other, bool disableAutoclose = true)
+SockCopy<TcpListener> wrapCopy(TcpListener & other, bool disableAutoclose)
 {
     if (disableAutoclose) other.setAutoclose(false);
     return SockCopy<TcpListener>(other);
 }
 
-SockCopy<UdpSocket> wrapCopy(UdpSocket & other, bool disableAutoclose = true)
+SockCopy<UdpSocket> wrapCopy(UdpSocket & other, bool disableAutoclose)
 {
     if (disableAutoclose) other.setAutoclose(false);
     return SockCopy<UdpSocket>(other);
 }
 
 
-SockCopy<TcpStream> wrapCopy(TcpStream && other, bool disableAutoclose = true)
+SockCopy<TcpStream> wrapCopy(TcpStream && other, bool disableAutoclose)
 {
     if (disableAutoclose) other.setAutoclose(false);
     return SockCopy<TcpStream>(std::move(other));
 }
 
-SockCopy<TcpListener> wrapCopy(TcpListener && other, bool disableAutoclose = true)
+SockCopy<TcpListener> wrapCopy(TcpListener && other, bool disableAutoclose)
 {
     if (disableAutoclose) other.setAutoclose(false);
     return SockCopy<TcpListener>(std::move(other));
 }
 
-SockCopy<UdpSocket> wrapCopy(UdpSocket && other, bool disableAutoclose = true)
+SockCopy<UdpSocket> wrapCopy(UdpSocket && other, bool disableAutoclose)
 {
     if (disableAutoclose) other.setAutoclose(false);
     return SockCopy<UdpSocket>(std::move(other));
-- 
GitLab