Boost C++ Libraries: Ticket #44: regex_match bidirectional-iterator bug https://svn.boost.org/trac10/ticket/44 <pre class="wiki">in your boost regex library doc, you wrote: ------------------------- The algorithm regex _match determines whether a given regular expression matches a given sequence denoted by a pair of bidirectional-iterators, the algorithm is defined as follows, note that the result is true only if the expression matches the whole of the input sequence, the main use of this function is data input validation: template &lt;class iterator, class Allocator, class charT, class traits, class Allocator2&gt; bool regex_match(iterator first, iterator last, match_results&lt;iterator, Allocator&gt;&amp; m, const reg_expression&lt;charT, traits, Allocator2&gt;&amp; e, unsigned flags = match_default); ------------------------- at the same time you use in regex_match.hpp: ------------------------- restart += len; ------------------------- which means iterator should have to be random-access rather than bidirectional-iterator. a very simple resolution would be : std::advance(restart, len); and in case of random-access this compiles to += on a good c++ library implementation </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/44 Trac 1.4.3 John Maddock Sat, 09 Feb 2002 11:58:32 GMT <link>https://svn.boost.org/trac10/ticket/44#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/44#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=14804 That should be fixed in the cvs now, thanks! </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sat, 09 Feb 2002 12:02:26 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/44#comment:2 https://svn.boost.org/trac10/ticket/44#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket