From 0338c0f43702b66d4279eb63a5a81f269420752d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 15 Sep 2015 13:28:36 +0100 Subject: [PATCH] Fix compilation with std regex --- src/regex.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regex.hh b/src/regex.hh index ffc20048..c4eab808 100644 --- a/src/regex.hh +++ b/src/regex.hh @@ -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