From 53f4c26c4682a951e084415a594fcb8d9494033f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 27 Nov 2021 22:29:53 +0100 Subject: Network: make Server non-copyable Avoids issues with shared_from_this and does not make much sense anyway. --- include/erebos/network.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/erebos/network.h') diff --git a/include/erebos/network.h b/include/erebos/network.h index f2ae191..252c3c7 100644 --- a/include/erebos/network.h +++ b/include/erebos/network.h @@ -16,6 +16,9 @@ public: Server(const std::shared_ptr &); ~Server(); + Server(const Server &) = delete; + Server & operator=(const Server &) = delete; + const Head & localHead() const; const Bhv & localState() const; -- cgit v1.2.3