Make Regex a class rather than a struct to avoid mismatched tags warnings
This commit is contained in:
parent
f0db3607ed
commit
fd82d3e258
|
@ -20,8 +20,9 @@ struct regex_error : runtime_error
|
||||||
using RegexBase = boost::basic_regex<wchar_t, boost::c_regex_traits<wchar_t>>;
|
using RegexBase = boost::basic_regex<wchar_t, boost::c_regex_traits<wchar_t>>;
|
||||||
|
|
||||||
// Regex that keeps track of its string representation
|
// Regex that keeps track of its string representation
|
||||||
struct Regex : RegexBase
|
class Regex : RegexBase
|
||||||
{
|
{
|
||||||
|
public:
|
||||||
Regex() = default;
|
Regex() = default;
|
||||||
|
|
||||||
explicit Regex(StringView re, flag_type flags = ECMAScript);
|
explicit Regex(StringView re, flag_type flags = ECMAScript);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user