diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2018-11-30 16:52:54 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2018-11-30 16:52:54 +0100 |
| commit | 3abece6f0a7edca476ee0c493f30dda8f8bcefd5 (patch) | |
| tree | e794f512a262cca92db6d0a5f9d41b6be64d9db0 /src/message.cpp | |
| parent | 9c2231c8fb45f32c7b1d23e14125bc58ea405e60 (diff) | |
| download | wanda-3abece6f0a7edca476ee0c493f30dda8f8bcefd5.tar.xz wanda-3abece6f0a7edca476ee0c493f30dda8f8bcefd5.zip | |
core: stop ownership circles in connection
Diffstat (limited to 'src/message.cpp')
| -rw-r--r-- | src/message.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/message.cpp b/src/message.cpp index ad76897..9900939 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -4,6 +4,8 @@ #include <ios> #include <sstream> +#include <iostream> + namespace wanda { @@ -64,6 +66,7 @@ std::istream &operator>>(std::istream &in, message &message) message.argument = std::optional{std::move(buffer)}; } + in.clear(in.rdstate() ^ std::ios_base::failbit); return in; } |
