Boost logo

Boost :

From: John Maddock (john_maddock_at_[hidden])
Date: 2002-06-08 05:38:54


> 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?

This should now be fixed in the cvs, thanks for the report,

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