mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
remove std:binary_function inheritance from comparator (#65)
deprecated since C++11, removed in C++17
This commit is contained in:
@@ -4882,7 +4882,7 @@ struct RepairItem {
|
|||||||
item(object), owner(soldier), inventorySlot(slot) {}
|
item(object), owner(soldier), inventorySlot(slot) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
struct RepairPriority : std::binary_function<RepairItem, RepairItem, bool> {
|
struct RepairPriority {
|
||||||
/// Comperator function
|
/// Comperator function
|
||||||
bool operator() (const RepairItem& firstItem, const RepairItem& secondItem) const {
|
bool operator() (const RepairItem& firstItem, const RepairItem& secondItem) const {
|
||||||
UINT8 priFirst = CalculateItemPriority(firstItem),
|
UINT8 priFirst = CalculateItemPriority(firstItem),
|
||||||
|
|||||||
Reference in New Issue
Block a user