remove std:binary_function inheritance from comparator (#65)

deprecated since C++11, removed in C++17
This commit is contained in:
majcosta
2023-01-06 22:49:27 +02:00
committed by GitHub
parent aaa8b094c9
commit be4f1b5e1c
+1 -1
View File
@@ -4882,7 +4882,7 @@ struct RepairItem {
item(object), owner(soldier), inventorySlot(slot) {}
};
struct RepairPriority : std::binary_function<RepairItem, RepairItem, bool> {
struct RepairPriority {
/// Comperator function
bool operator() (const RepairItem& firstItem, const RepairItem& secondItem) const {
UINT8 priFirst = CalculateItemPriority(firstItem),