Reference type for the checked iterator can't be a ref.

This commit is contained in:
King_DuckZ 2014-06-20 00:01:17 +02:00
parent e5aa85b2d7
commit 1ed5b3bc9f

View file

@ -31,6 +31,7 @@ DEALINGS IN THE SOFTWARE.
#include "core.h"
#include <stdexcept>
#include <cassert>
#include <cstddef>
namespace utf8
{
@ -310,7 +311,7 @@ namespace utf8
typename octet_iterator,
typename error_policy=ErrorPolicyThrow<octet_iterator>
>
class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t, std::ptrdiff_t, uint32_t*, uint32_t> {
octet_iterator it;
octet_iterator range_start;
octet_iterator range_end;