diff options
| author | Maxime Coste <mawww@kakoune.org> | 2016-12-14 20:59:39 +0000 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2016-12-14 20:59:39 +0000 |
| commit | fd82d3e25820946edf49f5e41d2ba2001dd82141 (patch) | |
| tree | 425b0c2ec77e996317887606d251483061ff6884 /src | |
| parent | f0db3607ed996a96e1037cb1b7c1fe1c5259ecb0 (diff) | |
Make Regex a class rather than a struct to avoid mismatched tags warnings
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.hh | 3 |
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); |
