From fd82d3e25820946edf49f5e41d2ba2001dd82141 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Wed, 14 Dec 2016 20:59:39 +0000 Subject: [PATCH] Make Regex a class rather than a struct to avoid mismatched tags warnings --- src/regex.hh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);