From 4eb350d8e9a284d9d051c6bab1358ed6d3d7e823 Mon Sep 17 00:00:00 2001 From: René Meusel Date: Tue, 19 Feb 2019 13:22:53 +0100 Subject: make the stream noncopyable --- src/lib/asio/asio_stream.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/lib/asio/asio_stream.h b/src/lib/asio/asio_stream.h index 540d48767..dc8c4561f 100644 --- a/src/lib/asio/asio_stream.h +++ b/src/lib/asio/asio_stream.h @@ -59,6 +59,12 @@ class Stream : public StreamBase : StreamBase(std::forward(args)...), nextLayer_(std::forward(nextLayer)) {} + Stream(Stream &&other) = default; + Stream& operator=(Stream &&other) = default; + + Stream(const Stream &other) = delete; + Stream& operator=(const Stream &other) = delete; + // // -- -- accessor methods // -- cgit v1.2.3