Add constructor from underlayed socket for PrintStream
All checks were successful
PR Check / on-push-commit-check (push) Successful in 15m46s

This commit is contained in:
sha512sum 2024-11-14 19:57:46 +00:00
parent 662392509f
commit 96e65dd2c6

View file

@ -35,6 +35,8 @@ template <typename Socket>
struct PrintStream : Socket {
using Socket::Socket;
PrintStream(PrintStream&&) = default;
constexpr PrintStream(Socket&& sock) : Socket(std::move(sock)) {
}
using Executor = Socket::executor_type;
template <typename ConstBufferSequence,
BOOST_ASIO_COMPLETION_TOKEN_FOR(void(boost::system::error_code, std::size_t))