$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [xpressive] assert while matching file contents.
From: Eric Niebler (eric_at_[hidden])
Date: 2008-09-24 18:49:23
Raindog wrote:
> mark_tag file_(0), vbp_(1), sig_(2);
The problem is here^^^
> sregex files_re = "xcopy" >> -*_ >> "/Y" >> _n;
> sregex vbp_re = "@rem " >> -*_ >> " files: " >> repeat<1, 4>(_d) >> _ln;
> sregex sig_re = "@rem {" >> -*_>> "}, " >> *~_ln;
Sub-match 0 is "special". It refers to the whole match, not to an
individual sub-match. Change that line to:
mark_tag file_(1), vbp_(2), sig_(3);
... and that should fix your problem.
-- Eric Niebler BoostPro Computing http://www.boostpro.com