mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-29 01:24:52 +03:00
Fix compilation with std regex
This commit is contained in:
parent
fd0567c730
commit
0338c0f437
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user