mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::server: Enforce object semantics on peer / link.
This commit is contained in:
parent
4c61eeba89
commit
3a73abef8d
2 changed files with 4 additions and 0 deletions
|
@ -89,5 +89,7 @@ struct ircd::server::link
|
|||
bool open(const net::open_opts &);
|
||||
|
||||
link(server::peer &);
|
||||
link(link &&) = delete;
|
||||
link(const link &) = delete;
|
||||
~link() noexcept;
|
||||
};
|
||||
|
|
|
@ -109,6 +109,8 @@ struct ircd::server::peer
|
|||
void close(const net::close_opts & = net::close_opts_default);
|
||||
|
||||
peer();
|
||||
peer(peer &&) = delete;
|
||||
peer(const peer &) = delete;
|
||||
~peer() noexcept;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue