Add constructor from underlayed socket for PrintStream
All checks were successful
PR Check / on-push-commit-check (push) Successful in 15m46s
All checks were successful
PR Check / on-push-commit-check (push) Successful in 15m46s
This commit is contained in:
parent
662392509f
commit
96e65dd2c6
1 changed files with 2 additions and 0 deletions
|
@ -35,6 +35,8 @@ template <typename Socket>
|
||||||
struct PrintStream : Socket {
|
struct PrintStream : Socket {
|
||||||
using Socket::Socket;
|
using Socket::Socket;
|
||||||
PrintStream(PrintStream&&) = default;
|
PrintStream(PrintStream&&) = default;
|
||||||
|
constexpr PrintStream(Socket&& sock) : Socket(std::move(sock)) {
|
||||||
|
}
|
||||||
using Executor = Socket::executor_type;
|
using Executor = Socket::executor_type;
|
||||||
template <typename ConstBufferSequence,
|
template <typename ConstBufferSequence,
|
||||||
BOOST_ASIO_COMPLETION_TOKEN_FOR(void(boost::system::error_code, std::size_t))
|
BOOST_ASIO_COMPLETION_TOKEN_FOR(void(boost::system::error_code, std::size_t))
|
||||||
|
|
Loading…
Reference in a new issue