|
|
|
@ -42,6 +42,7 @@ namespace protocol::token { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool operator<(const pattern_t& l, const pattern_t& r) { |
|
|
|
|
debug && cerr << endl; |
|
|
|
|
debug && cerr << "Checking if " << l << " < " << r << endl; |
|
|
|
|
|
|
|
|
|
if(l == r) { |
|
|
|
@ -49,11 +50,6 @@ namespace protocol::token { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(l.size() < r.size()) { |
|
|
|
|
debug && cerr << "Less because right has more elements" << endl; |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(auto le = l.begin(); le != l.end(); ++le) { |
|
|
|
|
if(r.count(le->first) == 0) { |
|
|
|
|
debug && cerr << "Not less because right is missing " << le->first << " -> " << le->second << endl; |
|
|
|
|