summaryrefslogtreecommitdiff
path: root/src/buffer.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.hh')
-rw-r--r--src/buffer.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/buffer.hh b/src/buffer.hh
index ce336e96..71c5cd51 100644
--- a/src/buffer.hh
+++ b/src/buffer.hh
@@ -75,6 +75,8 @@ public:
const char& operator[](size_t n) const noexcept;
size_t operator- (const BufferIterator& iterator) const;
+ explicit operator bool() const { return static_cast<bool>(m_buffer); }
+
BufferIterator operator+ (ByteCount size) const;
BufferIterator operator- (ByteCount size) const;