The operator< should be const, so it can be applied to const tree_struct.

This resolves FTBFS on FreeBSD.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 2e4f150a47)
r14.0.x r14.0.11
Slávek Banko 3 years ago
parent 7f8e26359d
commit c806a7ef14
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -49,7 +49,8 @@ struct tree_struct {
it->sort();
}
}
bool operator < (tree_struct &s1) const {
bool operator < (const tree_struct &s1) const
{
return item < s1.item;
}
};

Loading…
Cancel
Save