Opened 7 years ago

Closed 7 years ago

#5472 closed Bugs (fixed)

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

Reported by: Rick Berge <rfdb@…> Owned by: John Maddock
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 7 years ago by John Maddock

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
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.