2
0
mirror of https://github.com/boostorg/spirit.git synced 2026-01-19 04:42:11 +00:00

fixed compliance for boost::spirit::lex::lexertl::lexer::iterator_type

This commit is contained in:
joaquintides
2025-11-29 15:30:06 +01:00
parent f786c31e1b
commit 04b443b72c

View File

@@ -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;
}
};
}}