fix: clang < 16 can't emplace back struct with no constructor
This commit is contained in:
parent
ee652677a6
commit
c59264d6b4
|
@ -12,6 +12,12 @@ struct Rule {
|
||||||
std::regex rule;
|
std::regex rule;
|
||||||
std::string repr;
|
std::string repr;
|
||||||
int priority;
|
int priority;
|
||||||
|
|
||||||
|
// Fix for Clang < 16
|
||||||
|
// See https://en.cppreference.com/w/cpp/compiler_support/20 "Parenthesized initialization of
|
||||||
|
// aggregates"
|
||||||
|
Rule(std::regex rule, std::string repr, int priority)
|
||||||
|
: rule(rule), repr(repr), priority(priority) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
int default_priority_function(std::string& key);
|
int default_priority_function(std::string& key);
|
||||||
|
|
Loading…
Reference in New Issue