From 14198fadb408e7a49bf1180174184aa2bdfbc669 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 27 Jul 2016 21:36:52 +0100 Subject: [PATCH] BufferIterator is random access, not just bidirectional --- src/buffer.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.hh b/src/buffer.hh index 7b04aa9d..447089dd 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -55,7 +55,7 @@ public: using difference_type = ssize_t; using pointer = const value_type*; using reference = const value_type&; - using iterator_category = std::bidirectional_iterator_tag; + using iterator_category = std::random_access_iterator_tag; BufferIterator() : m_buffer(nullptr) {} BufferIterator(const Buffer& buffer, ByteCoord coord);