Update os.h
This commit is contained in:
parent
e66ba16923
commit
6be51ca3d5
@ -395,6 +395,7 @@ class ostream : private detail::buffer<char> {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
ostream(ostream&& other) : file_(std::move(other.file_)) {
|
ostream(ostream&& other) : file_(std::move(other.file_)) {
|
||||||
|
set(other.data(), other.capacity());
|
||||||
other.set(nullptr, 0);
|
other.set(nullptr, 0);
|
||||||
}
|
}
|
||||||
~ostream() {
|
~ostream() {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user