|
Boost : |
From: John Maddock (john_maddock_at_[hidden])
Date: 2002-06-06 06:20:47
> The following program demonstrates what we believe is a bug in regex
partial
> match algorithm:
>
> int main()
> {
> // boost::regex const re("(ab)?c"); // ok
> boost::regex const re("(ab)?"); // fails in the assert below
>
> boost::cmatch what;
> assert(boost::regex_match( "a", what, re, boost::match_default |
> boost::match_partial ));
> }
>
> Is there an easy way to fix this?
I don't know, but I'll look into it, thanks,
John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/index.htm
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk