From 96e65dd2c6816b578e273e34ee6fb26097475361 Mon Sep 17 00:00:00 2001 From: sha512sum Date: Thu, 14 Nov 2024 19:57:46 +0000 Subject: [PATCH] Add constructor from underlayed socket for PrintStream --- library/include/larra/printer_stream.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/include/larra/printer_stream.hpp b/library/include/larra/printer_stream.hpp index d2cfdba..ecbc30f 100644 --- a/library/include/larra/printer_stream.hpp +++ b/library/include/larra/printer_stream.hpp @@ -35,6 +35,8 @@ template struct PrintStream : Socket { using Socket::Socket; PrintStream(PrintStream&&) = default; + constexpr PrintStream(Socket&& sock) : Socket(std::move(sock)) { + } using Executor = Socket::executor_type; template