summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2016-12-14 20:59:39 +0000
committerMaxime Coste <mawww@kakoune.org>2016-12-14 20:59:39 +0000
commitfd82d3e25820946edf49f5e41d2ba2001dd82141 (patch)
tree425b0c2ec77e996317887606d251483061ff6884 /src
parentf0db3607ed996a96e1037cb1b7c1fe1c5259ecb0 (diff)
Make Regex a class rather than a struct to avoid mismatched tags warnings
Diffstat (limited to 'src')
-rw-r--r--src/regex.hh3
1 files changed, 2 insertions, 1 deletions
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<wchar_t, boost::c_regex_traits<wchar_t>>;
// 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);