Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
flagarde committed Jul 11, 2023
1 parent e3b1142 commit 876c8d4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions cpp-terminal/stream.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ class TIstream
else { m_stream >> t; }
return *this;
}

private:
static std::string file();
TIstream(const TIstream& other) = delete;
TIstream& operator=(const TIstream& rhs) = delete;
TIstream(TIstream&& other) = delete;
TIstream& operator=(TIstream&& rhs) = delete;
std::ifstream m_stream;
std::string m_string;
TIstream& operator=(TIstream&& rhs) = delete;

private:
static std::string file();
std::ifstream m_stream;
std::string m_string;
};

class TOstream
Expand All @@ -53,12 +53,12 @@ class TOstream
return *this;
}
TOstream(const Term::Buffer::Type& type = Term::Buffer::Type::LineBuffered, const std::size_t& size = BUFSIZ);

private:
TOstream(const TOstream& other) = delete;
TOstream& operator=(const TOstream& rhs) = delete;
TOstream(TOstream&& other) = delete;
TOstream& operator=(TOstream&& rhs) = delete;
TOstream& operator=(TOstream&& rhs) = delete;

private:
Term::Buffer m_buffer;
std::ostream m_stream;
};
Expand Down

0 comments on commit 876c8d4

Please sign in to comment.