diff options
author | René Meusel <[email protected]> | 2019-02-19 13:22:53 +0100 |
---|---|---|
committer | Hannes Rantzsch <[email protected]> | 2019-04-16 10:47:41 +0200 |
commit | 4eb350d8e9a284d9d051c6bab1358ed6d3d7e823 (patch) | |
tree | f3e1c91f7abfffc3da73b59469a65b7223f6e214 /src | |
parent | cf9a53cc488cf704e7393765325cbc9277fc36d5 (diff) |
make the stream noncopyable
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/asio/asio_stream.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<Channel> : StreamBase<Channel>(std::forward<Args>(args)...), nextLayer_(std::forward<StreamLayer>(nextLayer)) {} + Stream(Stream &&other) = default; + Stream& operator=(Stream &&other) = default; + + Stream(const Stream &other) = delete; + Stream& operator=(const Stream &other) = delete; + // // -- -- accessor methods // |