unknown regex error

1
2
terminate called after throwing an instance of 'std::regex_error'
  what():  Unexpected end of character class.


Knows someone when this error will be thrown? I have at my code all 'regex_match()' invocations within try-catch blocks, but this error will nowhere at this blocks caught.
The exception is probably thrown from the std::regex constructor.
Thanks, you're right, there it was. I had the std::regex objects constructed at global scope, so I couldn't use try-catch blocks.
Topic archived. No new replies allowed.