Fix compilation with std regex
This commit is contained in:
parent
fd0567c730
commit
0338c0f437
|
@ -27,7 +27,7 @@ struct Regex : std::regex
|
||||||
Regex() = default;
|
Regex() = default;
|
||||||
|
|
||||||
explicit Regex(StringView re, flag_type flags = ECMAScript) try
|
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()); }
|
catch (std::runtime_error& err) { throw regex_error(err.what()); }
|
||||||
|
|
||||||
template<typename Iterator>
|
template<typename Iterator>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user