Hi Paul
I tried your example on VC++. It does not crash but throws
boost::bad_expression with message: "Unmatched \{". I think that you should
modify your pattern to "(value|default)[^}]*\\{". Otherwise the backslash
is ignored (VC++ gives a warning about that) and regex treats '{' as the
start of the bounds operator "{}" - as result a closing '}' is expected.
Stefan
----- Original Message -----
From: "Paul Scruby"
The boost::regex class is crashing when I construct it with some regular expressions. For example: "(value|default)[^}]*\{" will crash and "value|default" does not.
Is this a bug, or am I doing something wrong? I am running gcc2.96 and boost1.30.2. I have attached an example src including Makefile.
Thanks in advance,
Paul
---------------------------------------------------------------------------- ----
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users