From 6be51ca3d525a5ccfa14267e69f4f352c6ecd6c7 Mon Sep 17 00:00:00 2001 From: Boostibot Date: Mon, 31 Aug 2020 16:03:31 +0200 Subject: [PATCH] Update os.h --- include/fmt/os.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/fmt/os.h b/include/fmt/os.h index 7796260a..2379347b 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -395,6 +395,7 @@ class ostream : private detail::buffer { public: ostream(ostream&& other) : file_(std::move(other.file_)) { + set(other.data(), other.capacity()); other.set(nullptr, 0); } ~ostream() {