net: make IteratorComparator's operator const

Although this is okay to be sloppy on c++11, it is not okay when
using c++17. See: https://cplusplus.github.io/LWG/issue2542
This commit is contained in:
Patrick Lodder 2024-03-24 22:24:06 -04:00
parent 5eaff1e096
commit bcdcf24f35
No known key found for this signature in database
GPG Key ID: 7C523F5FBABE80E7

View File

@ -43,7 +43,7 @@ std::atomic<int64_t> nTimeBestReceived(0); // Used only to inform the wallet of
struct IteratorComparator
{
template<typename I>
bool operator()(const I& a, const I& b)
bool operator()(const I& a, const I& b) const
{
return &(*a) < &(*b);
}