Boost logo

Boost :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2002-06-04 21:15:57

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?

Boost list run by bdawes at, gregod at, cpdaniel at, john at