diff --git a/src/regex.hh b/src/regex.hh index 2fed745d..b88b1ba4 100644 --- a/src/regex.hh +++ b/src/regex.hh @@ -20,8 +20,9 @@ struct regex_error : runtime_error using RegexBase = boost::basic_regex>; // Regex that keeps track of its string representation -struct Regex : RegexBase +class Regex : RegexBase { +public: Regex() = default; explicit Regex(StringView re, flag_type flags = ECMAScript);