Opened 6 years ago

Closed 6 years ago

#5472 closed Bugs (fixed)

u32regex_token_iterator broken for int submatch[] and vector<int> submatch

Reported by: Rick Berge <rfdb@…> Owned by: johnmaddock
Milestone: To Be Determined Component: regex
Version: Boost 1.45.0 Severity: Problem
Keywords: u32regex submatch Cc:


In u32regex_token_iterator.hpp, a couple of the make_u32regex_token_iterator templates do not pass submatch along to the underlying constructor.

In particular, the int[] and vector<int> flavors are broken, so you can't get simultaneous matches/nonmatches.

Since there is no version of the constructor omitting submatch, the bug may be more insidious for certain values of match_flag_type being auto type converted!

I noticed this in 1.45.0, and still broken in trunk.

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by johnmaddock

  • Resolution set to fixed
  • Status changed from new to closed

(In [71478]) Pass submatches along to token-iterator constructor. Fixes #5472.

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain johnmaddock.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.