|
Boost Users : |
Subject: Re: [Boost-users] boost.xpressive: using placeholders with custom (check()) assertions
From: Eric Niebler (eric_at_[hidden])
Date: 2010-06-25 09:56:16
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net