Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2004-05-02 06:22:43


> the following pattern (35 matching token, and at least one more) with this
> simple expression ("[_]+$") throws "memory exhausted" when
> using wchar_t strings. the same works with char strings even triple sized.
> matching doesnt throw, if we use "^[_]+$", "[_]{1,}$", "[_][_]*$" etc. so
> this is a bug.

Confirmed, it's a bug, I'm testing the fix now.

> another issue:
> i think, "(one|two|three|)" style alternation (notice the empty string on
> the right) should be accepted and handled as "(one|two|three)?"
> now it throws bad_expression

I'm not sure about this one, Boost.regex has always deliberately rejected
that, and although I realise that perl5 does accept this, perl6 will regard
it as an error I believe.

Thanks,

John.


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