From 04b443b72cc99eac3ef7a2fec271c42a7cb76e5d Mon Sep 17 00:00:00 2001 From: joaquintides Date: Sat, 29 Nov 2025 15:30:06 +0100 Subject: [PATCH] fixed compliance for boost::spirit::lex::lexertl::lexer::iterator_type --- .../spirit/home/lex/lexer/lexertl/iterator.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/boost/spirit/home/lex/lexer/lexertl/iterator.hpp b/include/boost/spirit/home/lex/lexer/lexertl/iterator.hpp index e5fd4127d..40ff5dc77 100644 --- a/include/boost/spirit/home/lex/lexer/lexertl/iterator.hpp +++ b/include/boost/spirit/home/lex/lexer/lexertl/iterator.hpp @@ -1,4 +1,5 @@ // Copyright (c) 2001-2011 Hartmut Kaiser +// Copyright (c) 2025 Joaquin M Lopez Munoz // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) @@ -115,6 +116,19 @@ namespace boost { namespace spirit { namespace lex { namespace lexertl ? unique_functor_type::map_state(*this, statename) : 0; } + + iterator& operator++() + { + this->base_type::operator++(); + return *this; + } + + iterator operator++(int) + { + iterator tmp(*this); + this->base_type::operator++(); + return tmp; + } }; }}