
25 Jun
2010
25 Jun
'10
1:56 p.m.
On 6/25/2010 8:32 AM, Alex Dubov wrote:
const sregex expr2(*(as_xpr('a')[check(check_a(_cnt, 5))] | _)); /* ^ this check() causes a problem */
You found a bug in xpressive. I don't think anybody has ever tried to use a placeholder (_cnt above) in a custom assertion. I've just committed a fix to trunk and added a test for this. I'll do my best to get this fix in the next release. For now, you *should* be able to just apply the attached patch to xpressive/detail/core/matcher/predicate_matcher.hpp. Thanks for the report. -- Eric Niebler BoostPro Computing http://www.boostpro.com