refactor: Use empty() over eof() in the streams interface
End-of-file does not really make sense for streams that wrap buffers. So replace it by the equivalent empty() checks.
This commit is contained in:
5 files changed
+4
-5
No files matched your search
@@ -195,7 +195,6 @@ public:
|
||||
//
|
||||
// Stream subset
|
||||
//
|
||||
bool eof() const { return size() == 0; }
|
||||
int in_avail() const { return size(); }
|
||||
|
||||
void read(std::span<value_type> dst)
|
||||
|
||||
Reference in new issue
Block a user