Make Regex a class rather than a struct to avoid mismatched tags warnings

This commit is contained in:
Maxime Coste 2016-12-14 20:59:39 +00:00
parent f0db3607ed
commit fd82d3e258

View File

@ -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);