Ticket #5472 (closed Bugs: fixed)

Opened 6 years ago

Last modified 6 years ago

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.


Change History

comment:1 Changed 6 years ago by johnmaddock

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

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


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
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.