Fix BufferIterator::difference_type, it should be signed

This commit is contained in:
Maxime Coste 2016-04-21 20:26:07 +01:00
parent 66a40a37cd
commit a22b1b6bc8

View File

@ -49,7 +49,7 @@ class BufferIterator
{ {
public: public:
using value_type = char; using value_type = char;
using difference_type = size_t; using difference_type = ssize_t;
using pointer = const value_type*; using pointer = const value_type*;
using reference = const value_type&; using reference = const value_type&;
using iterator_category = std::bidirectional_iterator_tag; using iterator_category = std::bidirectional_iterator_tag;