Subject: [Boost-bugs] [Boost C++ Libraries] #5472: u32regex_token_iterator broken for int submatch[] and vector<int> submatch
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-14 18:52:34
#5472: u32regex_token_iterator broken for int submatch[] and vector<int> submatch
--------------------------------------------------+-------------------------
Reporter: Rick Berge <rfdb@â¦> | Owner: johnmaddock
Type: Bugs | Status: new
Milestone: To Be Determined | Component: regex
Version: Boost 1.45.0 | Severity: Problem
Keywords: u32regex submatch |
--------------------------------------------------+-------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5472> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC