From 3a73abef8de955e056cc6db5805f48c8dd129624 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 2 May 2018 11:29:13 -0700 Subject: [PATCH] ircd::server: Enforce object semantics on peer / link. --- include/ircd/server/link.h | 2 ++ include/ircd/server/peer.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/include/ircd/server/link.h b/include/ircd/server/link.h index 761856d23..adeea96dd 100644 --- a/include/ircd/server/link.h +++ b/include/ircd/server/link.h @@ -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; }; diff --git a/include/ircd/server/peer.h b/include/ircd/server/peer.h index c74f54010..9d13af79a 100644 --- a/include/ircd/server/peer.h +++ b/include/ircd/server/peer.h @@ -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; };