mirror of
https://github.com/ENSL/NS.git
synced 2024-11-10 07:11:38 +00:00
Added const qualifiers to avoid VS2019 errors (#76)
Co-authored-by: Petter Rønningen <petter.ronningen@sintef.no>
This commit is contained in:
parent
2fb18b989f
commit
c2cd59fd98
1 changed files with 3 additions and 3 deletions
|
@ -33,11 +33,11 @@ using std::vector;
|
|||
|
||||
struct BalanceListenerSort
|
||||
{
|
||||
bool operator()(const BalanceChangeListener* lhs, const BalanceChangeListener* rhs)
|
||||
bool operator()(const BalanceChangeListener* lhs, const BalanceChangeListener* rhs) const
|
||||
{ return lhs->getBalanceChangeListenerID() < rhs->getBalanceChangeListenerID(); }
|
||||
bool operator()(const BalanceChangeListener* lhs, const unsigned int rhs)
|
||||
bool operator()(const BalanceChangeListener* lhs, const unsigned int rhs) const
|
||||
{ return lhs->getBalanceChangeListenerID() < rhs; }
|
||||
bool operator()(const unsigned int lhs, const BalanceChangeListener* rhs)
|
||||
bool operator()(const unsigned int lhs, const BalanceChangeListener* rhs) const
|
||||
{ return lhs < rhs->getBalanceChangeListenerID(); }
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue