Modify

Opened 5 years ago

Closed 4 years ago

#9227 closed Bugs (fixed)

boost::regex match_count off by 1

Reported by: spoo@… Owned by: John Maddock
Milestone: To Be Determined Component: regex
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

#include <boost/regex.hpp>

int main(int, char **)
{
	boost::regex r("(a)");
	std::cout << r.mark_count(); 
	return 0;
}

prints out "2" instead of "1". Both libc++ and libstdc++ print out "1".

This was discussed in 2007 as well I believe, but I couldn't find any other mention of the issue: [regex] regex::mark_count() incorrect? (I can't post the link since trac rejects my submission)

Attachments (0)

Change History (1)

comment:1 Changed 4 years ago by John Maddock

Resolution: fixed
Status: newclosed

Fixed in Git develop

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.