0
0
Fork 0
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:
Jason Volk 2018-05-02 11:29:13 -07:00
parent 4c61eeba89
commit 3a73abef8d
2 changed files with 4 additions and 0 deletions

View file

@ -89,5 +89,7 @@ struct ircd::server::link
bool open(const net::open_opts &); bool open(const net::open_opts &);
link(server::peer &); link(server::peer &);
link(link &&) = delete;
link(const link &) = delete;
~link() noexcept; ~link() noexcept;
}; };

View file

@ -109,6 +109,8 @@ struct ircd::server::peer
void close(const net::close_opts & = net::close_opts_default); void close(const net::close_opts & = net::close_opts_default);
peer(); peer();
peer(peer &&) = delete;
peer(const peer &) = delete;
~peer() noexcept; ~peer() noexcept;
}; };