mirror of
https://github.com/boostorg/regex.git
synced 2026-02-03 22:06:22 +01:00
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 ));
}
[SVN r14110]