public:
StdRegex(const std::string& rx, std::regex::flag_type fltype) : Regex(rx)
{
- try{
+ try
+ {
regexcl.assign(rx, fltype | std::regex::optimize);
}
- catch(std::regex_error rxerr)
+ catch(const std::regex_error& rxerr)
{
throw RegexException(rx, rxerr.what());
}