mark the ItemComparator as const. Seems to be needed for MSV C++

This commit is contained in:
Krasimir Angelov
2026-09-09 07:10:54 +02:00
parent 9c4feb151b
commit 911dc4b4c8
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -514,7 +514,7 @@ void PgfAbstractParser::combine(State *state, Item *item, CCat *ccat)
state->push_item(item);
}
bool PgfAbstractParser::ItemComparator::operator()(Item *item1, Item *item2)
bool PgfAbstractParser::ItemComparator::operator()(Item *item1, Item *item2) const
{
if (item1->rule.as_object() < item2->rule.as_object())
return true;
+1 -1
View File
@@ -132,7 +132,7 @@ protected:
} item_prob_comp;
struct ItemComparator : std::less<Item*> {
bool operator()(Item *item1, Item *item2);
bool operator()(Item *item1, Item *item2) const;
};
struct Cont {