Regex gcc low version error


#1

the latest update to:

include following regex related code:
explicit ConfigParser(const std::string& path)
: path_(path),
line_comment_regex_("^#"),
key_regex_(R"rx(^([^#"’=\r\n\t ]+)[\t ]=)rx"),
key_regex_escaped_(R"rx(^(["’])([^"’=\r\n]+)\1[\t ]
=)rx"),
value_regex_(R"rx(^([^#"’=\r\n\t ]+)[\t ](?:#.){0,1}$)rx"),
value_regex_escaped_(R"rx(^(["’])([^"’=\r\n]+)\1[\t ](?:#.){0,1}$)rx")
{}

however, these codes cause regex_error exception, when compiled with low version GCC, such as:
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)


#2

Indeed, we require GCC 5+, as we’d like to use all features provided by C++11.


#3

Thanks a lot, I got it.