Boost logo

Boost Users :

From: Eric Niebler (eric_at_[hidden])
Date: 2008-07-30 17:47:03


Simon Steele wrote:
> Hi,
>
> I think there's a bug in Xpressive in Boost 1.35 with newline
> handling. Here is a very simple example:
<snip>

Looks like you've found a bug.

>
> These are the results I'd expect. It appears in Xpressive that the
> check in assert_line_base::is_line_break is broken, the following
> line:
>
> if(traits_cast<Traits>(state).isctype(ch, this->newline_))
>
> checks the previous character to see if it's a line break. I believe
> this should check the current character:
>
> if(traits_cast<Traits>(state).isctype(*state.cur_, this->newline_))

I don't think this is the right fix because it causes regression
failures. I'll investigate further. Please open a track ticket at
svn.boost.org.

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