Opened 12 years ago

Closed 11 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:

Description

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.

Change History (1)

comment:1 by John Maddock, 11 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.