mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-17 07:46:00 -06:00
mark the ItemComparator as const. Seems to be needed for MSV C++
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user