Fix compilation with std regex

This commit is contained in:
Maxime Coste 2015-09-15 13:28:36 +01:00
parent fd0567c730
commit 0338c0f437

View File

@ -27,7 +27,7 @@ struct Regex : std::regex
Regex() = default;
explicit Regex(StringView re, flag_type flags = ECMAScript) try
: std::regex(re.begin(), re.end(), flags), m_str(re) {}
: std::regex(re.begin(), re.end(), flags), m_str(re.str()) {}
catch (std::runtime_error& err) { throw regex_error(err.what()); }
template<typename Iterator>